LocalAdapter<T extends DataModel<T>> class abstract

An adapter interface to access local storage

See also: HiveLocalAdapter

Implementers

Constructors

LocalAdapter(ProviderReference _ref)

Properties

graph GraphNotifier
final
hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() Future<void>
Deletes all models of type T in local storage.
delete(String key) Future<void>
Deletes model of type T with key from local storage.
deserialize(Map<String, dynamic> map) → T
dispose() → void
inherited
findAll() List<T>
Returns all models of type T in local storage.
findOne(String key) → T?
Finds model of type T by key in local storage.
initialize() FutureOr<LocalAdapter<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
relationshipsFor([T model]) Map<String, Map<String, Object?>>
save(String key, T model, {bool notify = true}) Future<T>
Saves model of type T with key in local storage.
serialize(T model) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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