storage function

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

Implementation

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

  return PreferencesStorage(preferences);
}