periodicRefreshIntervalPrefProvider top-level property

StateNotifierProvider<PreferenceNotifier<Duration>, Duration> periodicRefreshIntervalPrefProvider
final

Provider for the user's preference for the periodic refresh interval

Implementation

final periodicRefreshIntervalPrefProvider =
    StateNotifierProvider<PreferenceNotifier<Duration>, Duration>(
  (ref) => PreferenceNotifier.watchCustomValue(
    ref,
    'periodicRefreshIntervalv2',
    defaultValue: const Duration(seconds: 10),
    adapter: DurationAdapter.instance,
  ),
);