HiveStringStore<T> class
- Inheritance
-
- Object
- PersistentStore<
T> - HiveStringStore
- Implemented types
- Implementers
Constructors
-
HiveStringStore({required String encode(T object), required T decode(String value), required String boxName, required FutureOr<
T> defaultValue()})
Properties
- boxName → String
-
final
- decode → T Function(String value)
-
final
-
defaultValue
→ FutureOr<
T> Function() -
no setteroverride
- encode → String Function(T object)
-
final
- 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> -
final
Methods
-
close(
) → Future< void> -
override
-
init(
) → Future< void> -
init call lazy only once before call load or save
by default do nothing
override
-
load(
) → Future< T> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → Future< void> -
override
-
save(
T newValue) → Future< T> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited