streaming_shared_preferences library

Classes

BoolAdapter
A PreferenceAdapter implementation for storing and retrieving a bool.
DateTimeAdapter
A PreferenceAdapter implementation for storing and retrieving a DateTime.
DoubleAdapter
A PreferenceAdapter implementation for storing and retrieving a double.
IntAdapter
A PreferenceAdapter implementation for storing and retrieving an int.
JsonAdapter<T>
A convenience adapter that handles common pitfalls when storing and retrieving JSON values.
Preference<T>
A Preference is a single value associated with a key, which is persisted using SharedPreferences.
PreferenceAdapter<T>
A PreferenceAdapter knows how to retrieve and store a value associated with a key by using SharedPreferences.
PreferenceBuilder<T>
PreferenceBuilder is exactly like a StreamBuilder but without the need to provide initialData. It also solves the initial flicker problem that happens when a StreamBuilder transitions from its initialData to the values in it stream.
StreamingSharedPreferences
StreamingSharedPreferences is like SharedPreferences, but reactive.
StringAdapter
A PreferenceAdapter implementation for storing and retrieving a String.
StringListAdapter
A PreferenceAdapter implementation for storing and retrieving a List of String objects.

Properties

debugObtainSharedPreferencesInstance Future<SharedPreferences>
Used for obtaining an instance of SharedPreferences by StreamingSharedPreferences.
getter/setter pair

Functions

debugResetStreamingSharedPreferencesInstance() → void
Resets the singleton instance of StreamingSharedPreferences so that it can be always tested from a clean slate. Only for testing purposes.

Typedefs

PreferenceWidgetBuilder<T> = dynamic Function(BuildContext context, T value)
A function that builds a widget whenever a Preference has a new value.