ThemeServiceHive class
A ThemeService implementation that stores and retrieves theme settings locally using the package Hive: https://pub.flutter-io.cn/packages/hive
- Implemented types
Constructors
- ThemeServiceHive({required String boxName})
Properties
Methods
-
init(
) → Future< void> -
ThemeServiceHive's init implementation. Must call be before accessing
the storage box.
override
-
load<
T> (String key, T defaultValue) → Future< T> -
Loads a setting from the Theme service, using a key to access it from
the Hive storage box.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerHiveAdapters(
) → void -
save<
T> (String key, T value) → Future< void> -
Save a setting to the Theme service with the Hive storage box,
using key, as key for the value.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited