HiveStore class
Constructors
-
HiveStore.new([Box<Map?>? box])
-
Creates a HiveStore initialized with the given
box
, defaulting to Hive.box(defaultBoxName)
Properties
-
box
→ Box<Map?>
-
Direct access to the underlying
Box
.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Static Methods
-
init({required String onPath})
→ void
-
Init Hive on specific Path
-
open({String boxName = defaultBoxName, String? path})
→ Future<HiveStore>
-
Convenience factory for
HiveStore(await openBox(boxName ?? 'graphqlClientStore', path: path))
-
openBox(String boxName, {String? path})
→ Future<Box<Map?>>
-
Opens a box. Convenience pass through to
Hive.openBox
.
Constants
-
defaultBoxName
→ const String
-
Default box name for the
graphql/client.dart
cache store (graphqlClientStore
)