ThemeServicePrefs class
A ThemeService implementation that stores and retrieves theme settings locally using the package Shared Preferences: https://pub.flutter-io.cn/packages/shared_preferences
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
) → Future< void> -
ThemeServicePrefs initialization.
override
-
load<
T> (String key, T defaultValue) → Future< T> -
Loads a setting from the Theme service, stored with
key
string.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save<
T> (String key, T value) → Future< void> -
Save a setting to the Theme service, using
key
as its storage key.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited