PrefsManager class
Manages initialization and configuration of the preference system.
This class coordinates loading preferences from different storage backends and provides a centralized initialization point for the entire system.
Example:
final prefsManager = PrefsManager(
remote: SupabasePreferences(),
enumValues: [UserPrefs.values, AppPrefs.values],
);
await prefsManager.init();
Constructors
-
PrefsManager({required RemotePrefs remote, required List<
List< enumValues})Pref> > - Creates a preference manager.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- remote → RemotePrefs
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
) → Future< void> - Initializes the preference system.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited