HiveStorage class abstract

Implementers

Constructors

HiveStorage.new()

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

clearStorage<T>({List<String> boxNames = const <String>[]}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printLog(dynamic msg) → void
read<T>({required String key, String boxName = userBox, T? defaultValue}) → T?
Return the value for the given key. If value doesn't exist, optionally return the given defaultValue of <T>.
readBox<T>({String boxName = userBox}) List
toString() String
A string representation of this object.
inherited
write({required String key, required dynamic value, String boxName = userBox}) FutureOr<void>
Insert a key/value pair. Allows for a dynamic value as various storage options (eg. Hive) are able to store more than just primitive data types.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

userBox → const String