LocalDataSource class abstract

Constructors

LocalDataSource()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

addItemOfType<T extends Equatable>(T item) Future<int>
addItemsOfType<T extends Equatable>(List<T> items) Future<Iterable<int>>
builder(dynamic initializationDone(LocalDataSourceBuilder builder)) Future<void>
To initialize singleton local Hive data source all you need to do is to start builder flow by calling builder() method and append all your TypeAdapters with appendAdapter method. Finally flow is done by calling build() method after appending adapters.
deleteAllOfType<T extends Equatable>() Future<void>
deleteItemOfType<T extends Equatable>(T item) Future<void>
getAllOfType<T extends Equatable>() List<T>
watchAllOfType<T extends Equatable>() Stream<T>?