core/core
library
Classes
-
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(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.