IGenericStore<T> class abstract

Implementers

Constructors

IGenericStore()

Properties

context String
final
fromJson → T Function(dynamic)
final
hashCode int
The hash code for this object.
no setterinherited
onCreate Event<StoreCreateEvent<T>>
Emitted when a new key is added to the store. The event contains the key and the value of type T.
final
onDelete Event<StoreDeleteEvent<T>>
Emitted when a key is deleted from the store. The event contains the key and the value of type T.
final
onSync Event<StoreSyncEvent>
Emitted when the store is persisted to storage. This event can be used as a catchall for any creations, updates, or deletions.
final
onUpdate Event<StoreUpdateEvent<T>>
Emitted when a key is updated in some way: overwritten, some piece changes, etc. The event contains the key and the value of type T.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage IStore
final
storageKey String
final
version String
final

Methods

delete(String key) Future<void>
get(String key) → T?
getAll() List<T>
has(String key) bool
init() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
persist() Future<void>
restore() Future<void>
set(String key, T value) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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