// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'member_card_provider.dart';

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

// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint, type=warning
/// Member Card Provider
///
/// Fetches and caches the current user's member card.
/// Automatically handles loading, error, and data states.
///
/// Usage:
/// ```dart
/// // In a ConsumerWidget
/// final memberCardAsync = ref.watch(memberCardProvider);
///
/// memberCardAsync.when(
///   data: (memberCard) => MemberCardWidget(memberCard: memberCard),
///   loading: () => const CustomLoadingIndicator(),
///   error: (error, stack) => ErrorWidget(error),
/// );
/// ```

@ProviderFor(MemberCardNotifier)
const memberCardProvider = MemberCardNotifierProvider._();

/// Member Card Provider
///
/// Fetches and caches the current user's member card.
/// Automatically handles loading, error, and data states.
///
/// Usage:
/// ```dart
/// // In a ConsumerWidget
/// final memberCardAsync = ref.watch(memberCardProvider);
///
/// memberCardAsync.when(
///   data: (memberCard) => MemberCardWidget(memberCard: memberCard),
///   loading: () => const CustomLoadingIndicator(),
///   error: (error, stack) => ErrorWidget(error),
/// );
/// ```
final class MemberCardNotifierProvider
    extends $AsyncNotifierProvider<MemberCardNotifier, MemberCard> {
  /// Member Card Provider
  ///
  /// Fetches and caches the current user's member card.
  /// Automatically handles loading, error, and data states.
  ///
  /// Usage:
  /// ```dart
  /// // In a ConsumerWidget
  /// final memberCardAsync = ref.watch(memberCardProvider);
  ///
  /// memberCardAsync.when(
  ///   data: (memberCard) => MemberCardWidget(memberCard: memberCard),
  ///   loading: () => const CustomLoadingIndicator(),
  ///   error: (error, stack) => ErrorWidget(error),
  /// );
  /// ```
  const MemberCardNotifierProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'memberCardProvider',
        isAutoDispose: true,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

  @override
  String debugGetCreateSourceHash() => _$memberCardNotifierHash();

  @$internal
  @override
  MemberCardNotifier create() => MemberCardNotifier();
}

String _$memberCardNotifierHash() =>
    r'6b9447a8b91b85fac3cc7ed58222743a7a829e22';

/// Member Card Provider
///
/// Fetches and caches the current user's member card.
/// Automatically handles loading, error, and data states.
///
/// Usage:
/// ```dart
/// // In a ConsumerWidget
/// final memberCardAsync = ref.watch(memberCardProvider);
///
/// memberCardAsync.when(
///   data: (memberCard) => MemberCardWidget(memberCard: memberCard),
///   loading: () => const CustomLoadingIndicator(),
///   error: (error, stack) => ErrorWidget(error),
/// );
/// ```

abstract class _$MemberCardNotifier extends $AsyncNotifier<MemberCard> {
  FutureOr<MemberCard> build();
  @$mustCallSuper
  @override
  void runBuild() {
    final created = build();
    final ref = this.ref as $Ref<AsyncValue<MemberCard>, MemberCard>;
    final element =
        ref.element
            as $ClassProviderElement<
              AnyNotifier<AsyncValue<MemberCard>, MemberCard>,
              AsyncValue<MemberCard>,
              Object?,
              Object?
            >;
    element.handleValue(ref, created);
  }
}
