LazyRepository<T> class

A repository of type T backed by a lazy hive box

Inheritance

Constructors

LazyRepository(LazyBox<T> box)

Properties

box → LazyBox<T>
final
hashCode int
The hash code for this object.
no setterinherited
keyNamespace String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

count() int
Returns the number of items contained in the box
inherited
delete(dynamic key) Future<void>
Deletes an item at the given key
inherited
find(dynamic key) Future<Optional<T>>
Returns an optional wrapping a single item, found (or not) by key
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(dynamic key, T item) Future<void>
Puts an item in the box at the given key
inherited
stream() Stream<T>
Returns a stream of entries
toString() String
A string representation of this object.
inherited

Operators

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