HiveJsonStore<T> class
- Inheritance
-
- Object
- PersistentStore<
T> - HiveStringStore<
T> - HiveJsonStore
Constructors
-
HiveJsonStore({required FutureOr<
T> defaultValue(), required String boxName, required T fromJson(dynamic v), dynamic toJson(T v)?})
Properties
- boxName → String
-
finalinherited
- decode → T Function(String value)
-
finalinherited
-
defaultValue
→ FutureOr<
T> Function() -
no setterinherited
- encode → String Function(T object)
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
store
→ HiveStore<
String> -
finalinherited
Methods
-
close(
) → Future< void> -
inherited
-
init(
) → Future< void> -
init call lazy only once before call load or save
by default do nothing
inherited
-
load(
) → Future< T> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → Future< void> -
inherited
-
save(
T newValue) → Future< T> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited