storage function

  1. @riverpod
Future<Storage<String, String>> storage(
  1. Ref ref
)

Implementation

@riverpod
Future<Storage<String, String>> storage(Ref ref) async {
  final preferences = await ref.watch(sharedPreferencesProvider.future);

  return PreferencesStorage(preferences);
}