showShutdownNotificationsPrefProvider top-level property

StateNotifierProvider<PreferenceNotifier<bool>, bool> showShutdownNotificationsPrefProvider
final

Provides the user's preference for showing shutdown notifications

Implementation

final showShutdownNotificationsPrefProvider =
    StateNotifierProvider<PreferenceNotifier<bool>, bool>(
  (ref) => PreferenceNotifier.watchBool(
    ref,
    'show_shutdown_notifications',
    defaultValue: true,
  ),
);