// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'chat.dart';

// **************************************************************************
// RiverpodGenerator
// **************************************************************************

String _$chatroomsJoinedHash() => r'3bb6389af07e81007680484d04bf5fe6f6c10571';

/// See also [chatroomsJoined].
@ProviderFor(chatroomsJoined)
final chatroomsJoinedProvider =
    AutoDisposeFutureProvider<List<SnChatRoom>>.internal(
      chatroomsJoined,
      name: r'chatroomsJoinedProvider',
      debugGetCreateSourceHash:
          const bool.fromEnvironment('dart.vm.product')
              ? null
              : _$chatroomsJoinedHash,
      dependencies: null,
      allTransitiveDependencies: null,
    );

@Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element
typedef ChatroomsJoinedRef = AutoDisposeFutureProviderRef<List<SnChatRoom>>;
String _$chatroomHash() => r'2b17d94728026420d18d6c383d2400cf4a070913';

/// Copied from Dart SDK
class _SystemHash {
  _SystemHash._();

  static int combine(int hash, int value) {
    // ignore: parameter_assignments
    hash = 0x1fffffff & (hash + value);
    // ignore: parameter_assignments
    hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
    return hash ^ (hash >> 6);
  }

  static int finish(int hash) {
    // ignore: parameter_assignments
    hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
    // ignore: parameter_assignments
    hash = hash ^ (hash >> 11);
    return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
  }
}

/// See also [chatroom].
@ProviderFor(chatroom)
const chatroomProvider = ChatroomFamily();

/// See also [chatroom].
class ChatroomFamily extends Family<AsyncValue<SnChatRoom?>> {
  /// See also [chatroom].
  const ChatroomFamily();

  /// See also [chatroom].
  ChatroomProvider call(String? identifier) {
    return ChatroomProvider(identifier);
  }

  @override
  ChatroomProvider getProviderOverride(covariant ChatroomProvider provider) {
    return call(provider.identifier);
  }

  static const Iterable<ProviderOrFamily>? _dependencies = null;

  @override
  Iterable<ProviderOrFamily>? get dependencies => _dependencies;

  static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;

  @override
  Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
      _allTransitiveDependencies;

  @override
  String? get name => r'chatroomProvider';
}

/// See also [chatroom].
class ChatroomProvider extends AutoDisposeFutureProvider<SnChatRoom?> {
  /// See also [chatroom].
  ChatroomProvider(String? identifier)
    : this._internal(
        (ref) => chatroom(ref as ChatroomRef, identifier),
        from: chatroomProvider,
        name: r'chatroomProvider',
        debugGetCreateSourceHash:
            const bool.fromEnvironment('dart.vm.product')
                ? null
                : _$chatroomHash,
        dependencies: ChatroomFamily._dependencies,
        allTransitiveDependencies: ChatroomFamily._allTransitiveDependencies,
        identifier: identifier,
      );

  ChatroomProvider._internal(
    super._createNotifier, {
    required super.name,
    required super.dependencies,
    required super.allTransitiveDependencies,
    required super.debugGetCreateSourceHash,
    required super.from,
    required this.identifier,
  }) : super.internal();

  final String? identifier;

  @override
  Override overrideWith(
    FutureOr<SnChatRoom?> Function(ChatroomRef provider) create,
  ) {
    return ProviderOverride(
      origin: this,
      override: ChatroomProvider._internal(
        (ref) => create(ref as ChatroomRef),
        from: from,
        name: null,
        dependencies: null,
        allTransitiveDependencies: null,
        debugGetCreateSourceHash: null,
        identifier: identifier,
      ),
    );
  }

  @override
  AutoDisposeFutureProviderElement<SnChatRoom?> createElement() {
    return _ChatroomProviderElement(this);
  }

  @override
  bool operator ==(Object other) {
    return other is ChatroomProvider && other.identifier == identifier;
  }

  @override
  int get hashCode {
    var hash = _SystemHash.combine(0, runtimeType.hashCode);
    hash = _SystemHash.combine(hash, identifier.hashCode);

    return _SystemHash.finish(hash);
  }
}

@Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element
mixin ChatroomRef on AutoDisposeFutureProviderRef<SnChatRoom?> {
  /// The parameter `identifier` of this provider.
  String? get identifier;
}

class _ChatroomProviderElement
    extends AutoDisposeFutureProviderElement<SnChatRoom?>
    with ChatroomRef {
  _ChatroomProviderElement(super.provider);

  @override
  String? get identifier => (origin as ChatroomProvider).identifier;
}

String _$chatroomIdentityHash() => r'35e19a5a3e31752c79b97ba0358a7ec8fb8f6e99';

/// See also [chatroomIdentity].
@ProviderFor(chatroomIdentity)
const chatroomIdentityProvider = ChatroomIdentityFamily();

/// See also [chatroomIdentity].
class ChatroomIdentityFamily extends Family<AsyncValue<SnChatMember?>> {
  /// See also [chatroomIdentity].
  const ChatroomIdentityFamily();

  /// See also [chatroomIdentity].
  ChatroomIdentityProvider call(String? identifier) {
    return ChatroomIdentityProvider(identifier);
  }

  @override
  ChatroomIdentityProvider getProviderOverride(
    covariant ChatroomIdentityProvider provider,
  ) {
    return call(provider.identifier);
  }

  static const Iterable<ProviderOrFamily>? _dependencies = null;

  @override
  Iterable<ProviderOrFamily>? get dependencies => _dependencies;

  static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;

  @override
  Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
      _allTransitiveDependencies;

  @override
  String? get name => r'chatroomIdentityProvider';
}

/// See also [chatroomIdentity].
class ChatroomIdentityProvider
    extends AutoDisposeFutureProvider<SnChatMember?> {
  /// See also [chatroomIdentity].
  ChatroomIdentityProvider(String? identifier)
    : this._internal(
        (ref) => chatroomIdentity(ref as ChatroomIdentityRef, identifier),
        from: chatroomIdentityProvider,
        name: r'chatroomIdentityProvider',
        debugGetCreateSourceHash:
            const bool.fromEnvironment('dart.vm.product')
                ? null
                : _$chatroomIdentityHash,
        dependencies: ChatroomIdentityFamily._dependencies,
        allTransitiveDependencies:
            ChatroomIdentityFamily._allTransitiveDependencies,
        identifier: identifier,
      );

  ChatroomIdentityProvider._internal(
    super._createNotifier, {
    required super.name,
    required super.dependencies,
    required super.allTransitiveDependencies,
    required super.debugGetCreateSourceHash,
    required super.from,
    required this.identifier,
  }) : super.internal();

  final String? identifier;

  @override
  Override overrideWith(
    FutureOr<SnChatMember?> Function(ChatroomIdentityRef provider) create,
  ) {
    return ProviderOverride(
      origin: this,
      override: ChatroomIdentityProvider._internal(
        (ref) => create(ref as ChatroomIdentityRef),
        from: from,
        name: null,
        dependencies: null,
        allTransitiveDependencies: null,
        debugGetCreateSourceHash: null,
        identifier: identifier,
      ),
    );
  }

  @override
  AutoDisposeFutureProviderElement<SnChatMember?> createElement() {
    return _ChatroomIdentityProviderElement(this);
  }

  @override
  bool operator ==(Object other) {
    return other is ChatroomIdentityProvider && other.identifier == identifier;
  }

  @override
  int get hashCode {
    var hash = _SystemHash.combine(0, runtimeType.hashCode);
    hash = _SystemHash.combine(hash, identifier.hashCode);

    return _SystemHash.finish(hash);
  }
}

@Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element
mixin ChatroomIdentityRef on AutoDisposeFutureProviderRef<SnChatMember?> {
  /// The parameter `identifier` of this provider.
  String? get identifier;
}

class _ChatroomIdentityProviderElement
    extends AutoDisposeFutureProviderElement<SnChatMember?>
    with ChatroomIdentityRef {
  _ChatroomIdentityProviderElement(super.provider);

  @override
  String? get identifier => (origin as ChatroomIdentityProvider).identifier;
}

String _$chatroomInvitesHash() => r'5cd6391b09c5517ede19bacce43b45c8d71dd087';

/// See also [chatroomInvites].
@ProviderFor(chatroomInvites)
final chatroomInvitesProvider =
    AutoDisposeFutureProvider<List<SnChatMember>>.internal(
      chatroomInvites,
      name: r'chatroomInvitesProvider',
      debugGetCreateSourceHash:
          const bool.fromEnvironment('dart.vm.product')
              ? null
              : _$chatroomInvitesHash,
      dependencies: null,
      allTransitiveDependencies: null,
    );

@Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element
typedef ChatroomInvitesRef = AutoDisposeFutureProviderRef<List<SnChatMember>>;
// ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
