flutter_persistent_value_notifier library
Classes
-
PersistentValueNotifier<
T> -
A nullable ValueNotifier that persists value changes by using
SharedPreferences
as a write-through cache. -
PersistentValueNotifierEnum<
T extends Enum?> -
A nullable ValueNotifier that persists enum value changes by using
SharedPreferences
as a write-through cache. -
PersistentValueNotifierJsonEncoded<
T> -
A nullable ValueNotifier that persists an object by using
SharedPreferences
as a write-through cache. - PersistentValueNotifierMap
-
A nullable ValueNotifier that persists a
Map<String, dynamic>
by usingSharedPreferences
as a write-through cache.
Functions
-
initPersistentValueNotifier(
{String? prefix}) → Future< void> -
Initialize
SharedPreferences
for PersistentValueNotifier, and read initial persisted values. Must be called before any PersistentValueNotifier or PersistentValueNotifierEnum instances are created. SeeSharedPreferences.setPrefix(prefix)
for information on theprefix
parameter.