StorageModel class abstract
Constructors
- StorageModel({dynamic id})
Properties
Methods
-
delete(
{bool log = true, StorageDatabase? database}) → Future< bool> -
exists(
[StorageDatabase? database]) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
[StorageDatabase? database]) → Future -
stream<
MT extends StorageModel> ([Duration delayCheck = const Duration(milliseconds: 50), StorageDatabase? database]) → Stream< MT> -
toMap(
) → Map -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator [](
String key) → dynamic
Static Methods
-
all<
MT extends StorageModel> () → Future< List< MT> > -
allIds<
MT extends StorageModel> () → Future< List< String> > -
allWhere<
MT extends StorageModel> ([bool where(dynamic)?, StorageDatabase? database]) → Future< List< MT> > -
deleteBy<
MT extends StorageModel> (dynamic value, String key) → Future< int> -
deleteWhere<
MT extends StorageModel> ([bool where(dynamic)?]) → Future< int> -
find<
MT extends StorageModel> (String id) → Future< MT?> -
findBy<
MT extends StorageModel> (dynamic value, String key) → Future< MT?> -
findWhere<
MT extends StorageModel> (bool where(dynamic)) → Future< MT?> -
nextId<
MT extends StorageModel> ([Type? type, StorageDatabase? database, String? collectionId]) → Future< String> -
streamAll<
MT extends StorageModel> ([bool where(MT)?, Duration delayCheck = const Duration(milliseconds: 50), StorageDatabase? database]) → Stream< List< MT> >