// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'events_notifier.dart';

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

String _$eventByIdHash() => r'8717d386b9cf44631b1bc606aedab99c63636b33';

/// 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 [Event] by id out of the events stream. Returns null
/// while loading or if no event matches.
///
/// Copied from [eventById].
@ProviderFor(eventById)
const eventByIdProvider = EventByIdFamily();

/// Resolves a single [Event] by id out of the events stream. Returns null
/// while loading or if no event matches.
///
/// Copied from [eventById].
class EventByIdFamily extends Family<Event?> {
  /// Resolves a single [Event] by id out of the events stream. Returns null
  /// while loading or if no event matches.
  ///
  /// Copied from [eventById].
  const EventByIdFamily();

  /// Resolves a single [Event] by id out of the events stream. Returns null
  /// while loading or if no event matches.
  ///
  /// Copied from [eventById].
  EventByIdProvider call(String id) {
    return EventByIdProvider(id);
  }

  @override
  EventByIdProvider getProviderOverride(covariant EventByIdProvider 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'eventByIdProvider';
}

/// Resolves a single [Event] by id out of the events stream. Returns null
/// while loading or if no event matches.
///
/// Copied from [eventById].
class EventByIdProvider extends AutoDisposeProvider<Event?> {
  /// Resolves a single [Event] by id out of the events stream. Returns null
  /// while loading or if no event matches.
  ///
  /// Copied from [eventById].
  EventByIdProvider(String id)
    : this._internal(
        (ref) => eventById(ref as EventByIdRef, id),
        from: eventByIdProvider,
        name: r'eventByIdProvider',
        debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
            ? null
            : _$eventByIdHash,
        dependencies: EventByIdFamily._dependencies,
        allTransitiveDependencies: EventByIdFamily._allTransitiveDependencies,
        id: id,
      );

  EventByIdProvider._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(Event? Function(EventByIdRef provider) create) {
    return ProviderOverride(
      origin: this,
      override: EventByIdProvider._internal(
        (ref) => create(ref as EventByIdRef),
        from: from,
        name: null,
        dependencies: null,
        allTransitiveDependencies: null,
        debugGetCreateSourceHash: null,
        id: id,
      ),
    );
  }

  @override
  AutoDisposeProviderElement<Event?> createElement() {
    return _EventByIdProviderElement(this);
  }

  @override
  bool operator ==(Object other) {
    return other is EventByIdProvider && 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 EventByIdRef on AutoDisposeProviderRef<Event?> {
  /// The parameter `id` of this provider.
  String get id;
}

class _EventByIdProviderElement extends AutoDisposeProviderElement<Event?>
    with EventByIdRef {
  _EventByIdProviderElement(super.provider);

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

String _$selectedEventIdHash() => r'6d48c24938e4ca7c60317e72cfee3bd87823b2cb';

/// Holds the currently-selected event id used when navigating to the detail
/// screen. Null when no event is selected.
///
/// Copied from [SelectedEventId].
@ProviderFor(SelectedEventId)
final selectedEventIdProvider =
    AutoDisposeNotifierProvider<SelectedEventId, String?>.internal(
      SelectedEventId.new,
      name: r'selectedEventIdProvider',
      debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
          ? null
          : _$selectedEventIdHash,
      dependencies: null,
      allTransitiveDependencies: null,
    );

typedef _$SelectedEventId = 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
