DataStoreLocal class
An implementation of DataStore that uses Sembast as a local database. Sembast is simple, but production ready for small/simple workloads. This flavor of the Datastore can also be used on-device or in the browser. See https://pub.dev/packages/sembast
Constructors
-
DataStoreLocal(Map<
Type, ClassInfo> classInfoMap, {String path = 'local_datastore.json'})
Properties
Methods
-
classInfo<
T> () → ClassInfo< T> -
The classInfoMap containing the ClassInfo for models which may be
stored in the datastore.
inherited
-
close(
) → Future< void> -
Subclasses must implement this to close the datastore.
override
-
collection<
T> () → Collection< T> -
Subclasses must implement this to return a collection for the given type.
Collection is the main interace for querying and updating a given
collection/table in the datastore.
override
-
init(
) → Future< void> -
Subclasses must implement this to initialize the datastore.
override
-
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