HiveLocalAdapter<T extends DataModel<T>> class abstract

Hive implementation of LocalAdapter and Hive's TypeAdapter.

Inheritance
Mixed in types
  • TypeAdapter<T>

Constructors

HiveLocalAdapter(ProviderReference _ref)

Properties

box ↔ Box<T>?
getter/setter pair
graph GraphNotifier
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeId int
Called for type registration
no setteroverride

Methods

clear() Future<void>
Deletes all models of type T in local storage.
override
delete(String key) Future<void>
Deletes model of type T with key from local storage.
override
deserialize(Map<String, dynamic> map) → T
inherited
dispose() → void
findAll() List<T>
Returns all models of type T in local storage.
override
findOne(String key) → T?
Finds model of type T by key in local storage.
override
initialize() Future<HiveLocalAdapter<T>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(BinaryReader reader) → T
Is called when a value has to be decoded.
override
relationshipsFor([T model]) Map<String, Map<String, Object?>>
inherited
save(String key, T model, {bool notify = true}) Future<T>
Saves model of type T with key in local storage.
override
serialize(T model) Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
write(BinaryWriter writer, T obj) → void
Is called when a value has to be encoded.
override

Operators

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