Repository<T> class

A repository of type T backed by a standard hive box

Inheritance

Constructors

Repository(Box<T> box)

Properties

box → Box<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) → 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 values
toString() String
A string representation of this object.
inherited

Operators

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