HHiveCore class
Low-level Hive wrapper for managing box collections. Handles initialization and box lifecycle management.
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- DEBUG_OBJ ↔ bool
-
getter/setter pair
- HIVE_BOX_COLLECTION_NAME ↔ String
-
getter/setter pair
- HIVE_CIPHER ↔ HiveCipher?
-
getter/setter pair
- HIVE_INIT_PATH ↔ String?
-
getter/setter pair
- HIVE_STORAGE_BACKEND_PREFERENCE ↔ HiveStorageBackendPreference
-
getter/setter pair
- isDebugAvailable → bool
-
Whether debug object storage is available.
Only works on web platform where objects are stored in
window.hiveDebug.no setter - kDebugMode → bool
-
Detect debug mode using assertions (only run in debug mode).
This mirrors Flutter's kDebugMode but works in pure Dart.
final
Static Methods
-
dispose(
String env) → Future< void> - Flushes and closes boxes for the given environment.
-
getBox(
String env) → Future< CollectionBox< String> > - Retrieves or opens a box for the given environment.
-
getMetaBox(
String env) → Future< CollectionBox< String> ?> -
Retrieves the shared metadata box if metadata is enabled for the environment.
All environments share a single
_metabox with namespaced keys{env}::{key}. -
initialize(
) → Future< void> - Initializes Hive and opens all registered box collections. Must be called before using any HHive instances.