// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'sort_preference_notifier.dart';

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

// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint, type=warning
/// Notifier that manages the active task sort preference.
///
/// Defaults to [TaskSortOption.alphabetical] synchronously (matching the
/// existing A-Z sort in CalendarDayList), then loads the persisted value
/// asynchronously on first build.
///
/// Follows the same pattern as [ThemeNotifier] in
/// `lib/core/theme/theme_provider.dart`.

@ProviderFor(SortPreferenceNotifier)
final sortPreferenceProvider = SortPreferenceNotifierProvider._();

/// Notifier that manages the active task sort preference.
///
/// Defaults to [TaskSortOption.alphabetical] synchronously (matching the
/// existing A-Z sort in CalendarDayList), then loads the persisted value
/// asynchronously on first build.
///
/// Follows the same pattern as [ThemeNotifier] in
/// `lib/core/theme/theme_provider.dart`.
final class SortPreferenceNotifierProvider
    extends $NotifierProvider<SortPreferenceNotifier, TaskSortOption> {
  /// Notifier that manages the active task sort preference.
  ///
  /// Defaults to [TaskSortOption.alphabetical] synchronously (matching the
  /// existing A-Z sort in CalendarDayList), then loads the persisted value
  /// asynchronously on first build.
  ///
  /// Follows the same pattern as [ThemeNotifier] in
  /// `lib/core/theme/theme_provider.dart`.
  SortPreferenceNotifierProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'sortPreferenceProvider',
        isAutoDispose: false,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

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

  @$internal
  @override
  SortPreferenceNotifier create() => SortPreferenceNotifier();

  /// {@macro riverpod.override_with_value}
  Override overrideWithValue(TaskSortOption value) {
    return $ProviderOverride(
      origin: this,
      providerOverride: $SyncValueProvider<TaskSortOption>(value),
    );
  }
}

String _$sortPreferenceNotifierHash() =>
    r'5d7f2c5d06b82b4114262ee05cf890ebe717fe2a';

/// Notifier that manages the active task sort preference.
///
/// Defaults to [TaskSortOption.alphabetical] synchronously (matching the
/// existing A-Z sort in CalendarDayList), then loads the persisted value
/// asynchronously on first build.
///
/// Follows the same pattern as [ThemeNotifier] in
/// `lib/core/theme/theme_provider.dart`.

abstract class _$SortPreferenceNotifier extends $Notifier<TaskSortOption> {
  TaskSortOption build();
  @$mustCallSuper
  @override
  void runBuild() {
    final ref = this.ref as $Ref<TaskSortOption, TaskSortOption>;
    final element =
        ref.element
            as $ClassProviderElement<
              AnyNotifier<TaskSortOption, TaskSortOption>,
              TaskSortOption,
              Object?,
              Object?
            >;
    element.handleCreate(ref, build);
  }
}
