// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'brackets_notifier.dart';

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

String _$bracketByIdHash() => r'c49c89b5fe87117266a8ca6c2c25009b0b290f60';

/// 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));
  }
}

/// Resolves a single [Bracket] by id out of the brackets stream. Returns null
/// while loading or if no bracket matches.
///
/// Copied from [bracketById].
@ProviderFor(bracketById)
const bracketByIdProvider = BracketByIdFamily();

/// Resolves a single [Bracket] by id out of the brackets stream. Returns null
/// while loading or if no bracket matches.
///
/// Copied from [bracketById].
class BracketByIdFamily extends Family<Bracket?> {
  /// Resolves a single [Bracket] by id out of the brackets stream. Returns null
  /// while loading or if no bracket matches.
  ///
  /// Copied from [bracketById].
  const BracketByIdFamily();

  /// Resolves a single [Bracket] by id out of the brackets stream. Returns null
  /// while loading or if no bracket matches.
  ///
  /// Copied from [bracketById].
  BracketByIdProvider call(String id) {
    return BracketByIdProvider(id);
  }

  @override
  BracketByIdProvider getProviderOverride(
    covariant BracketByIdProvider provider,
  ) {
    return call(provider.id);
  }

  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'bracketByIdProvider';
}

/// Resolves a single [Bracket] by id out of the brackets stream. Returns null
/// while loading or if no bracket matches.
///
/// Copied from [bracketById].
class BracketByIdProvider extends AutoDisposeProvider<Bracket?> {
  /// Resolves a single [Bracket] by id out of the brackets stream. Returns null
  /// while loading or if no bracket matches.
  ///
  /// Copied from [bracketById].
  BracketByIdProvider(String id)
    : this._internal(
        (ref) => bracketById(ref as BracketByIdRef, id),
        from: bracketByIdProvider,
        name: r'bracketByIdProvider',
        debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
            ? null
            : _$bracketByIdHash,
        dependencies: BracketByIdFamily._dependencies,
        allTransitiveDependencies: BracketByIdFamily._allTransitiveDependencies,
        id: id,
      );

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

  final String id;

  @override
  Override overrideWith(Bracket? Function(BracketByIdRef provider) create) {
    return ProviderOverride(
      origin: this,
      override: BracketByIdProvider._internal(
        (ref) => create(ref as BracketByIdRef),
        from: from,
        name: null,
        dependencies: null,
        allTransitiveDependencies: null,
        debugGetCreateSourceHash: null,
        id: id,
      ),
    );
  }

  @override
  AutoDisposeProviderElement<Bracket?> createElement() {
    return _BracketByIdProviderElement(this);
  }

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

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

    return _SystemHash.finish(hash);
  }
}

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

class _BracketByIdProviderElement extends AutoDisposeProviderElement<Bracket?>
    with BracketByIdRef {
  _BracketByIdProviderElement(super.provider);

  @override
  String get id => (origin as BracketByIdProvider).id;
}

String _$selectedBracketIdHash() => r'1562a0b74ce4868ad5e49de98e5287551b7a423b';

/// Currently-selected bracket id used when navigating to the detail screen.
///
/// Copied from [SelectedBracketId].
@ProviderFor(SelectedBracketId)
final selectedBracketIdProvider =
    AutoDisposeNotifierProvider<SelectedBracketId, String?>.internal(
      SelectedBracketId.new,
      name: r'selectedBracketIdProvider',
      debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
          ? null
          : _$selectedBracketIdHash,
      dependencies: null,
      allTransitiveDependencies: null,
    );

typedef _$SelectedBracketId = AutoDisposeNotifier<String?>;
// 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
