core/core
library
Classes
-
Prf
-
Singleton wrapper around
SharedPreferencesAsync
for use in the prf
package.
-
PrfEncoded<TSource, TStore>
-
A specialized PrfVariable that handles encoding and decoding between
in-memory types and storage types.
-
PrfVariable<T>
-
Base class for all prf persistence variables.
Typedefs
-
Decode<TSource, TStore>
= TSource? Function(TStore? stored)
-
Function type for decoding a storage type
TStore
back to source type TSource
.
-
Encode<TSource, TStore>
= TStore Function(TSource value)
-
Function type for encoding a source type
TSource
to a storage type TStore
.
-
SharedPrefsGetter<T>
= Future<T?> Function(SharedPreferencesAsync prefs, String key)
-
Function type for retrieving values from SharedPreferences.
-
SharedPrefsSetter<T>
= Future<void> Function(SharedPreferencesAsync prefs, String key, T value)
-
Function type for saving values to SharedPreferences.