core/typedefs library

Typedefs

SharedPrefsGetter<T> = Future<T?> Function(SharedPreferences prefs, String key)
Function type for retrieving values from SharedPreferences.
SharedPrefsSetter<T> = Future<bool> Function(SharedPreferences prefs, String key, T value)
Function type for saving values to SharedPreferences.