HiveObjectMixin mixin Null safety

Extend HiveObject to add useful methods to the objects you want to store in Hive

Mixin Applications

Properties

box BoxBase?
Get the box in which this object is stored. Returns null if object has not been added to a box yet.
read-only
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
read-only
isInBox bool
Returns whether this object is currently stored in a box.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

delete() Future<void>
Deletes this object from the box it is stored in.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
save() Future<void>
Persists this object.
toString() String
A string representation of this object.
inherited

Operators

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