StorageCollection class

Implementers

Constructors

StorageCollection(StorageDatabase storageDatabase, String collectionId, {StorageCollection? parent})

Properties

collectionId ↔ String
getter/setter pair
exists → Future<bool>
no setter
hashCode → int
The hash code for this object.
no setterinherited
parent ↔ StorageCollection?
getter/setter pair
path → String
no setter
randomStreamId → String
no setter
ref → String
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storageDatabase → StorageDatabase
final
storageListeners → StorageListeners
no setter

Methods

collection(String collectionId) → StorageCollection
delete({bool stream = true}) → Future<bool>
deleteItem(dynamic itemId, {bool stream = true}) → Future<bool>
get({String? streamId}) → Future
getAsModel<MT extends StorageModel>({String? streamId}) → Future<MT>
getAsModels<MT extends StorageModel>({String? streamId}) → Future<List<MT>>
getAsModelsSync<MT extends StorageModel>({String? streamId}) → List<MT>
getAsModelSync<MT extends StorageModel>({String? streamId}) → MT
getCollections() → Future<Map<dynamic, StorageCollection>>
getItem(dynamic docId, {String? streamId}) → Future
getItemSync(dynamic docId, {String? streamId}) → dynamic
getItemWhere(bool where(dynamic), {String? streamId}) → Future
getItemWhereSync(bool where(dynamic), {String? streamId}) → dynamic
getMapCollections(dynamic data) → Map<dynamic, StorageCollection>
getSync({String? streamId}) → dynamic
hasCollectionId(dynamic collectionId) → Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(dynamic data, {bool stream = true, bool keepData = true}) → Future
stream({Duration delayCheck = const Duration(milliseconds: 50)}) → Stream
streamAsModel<MT extends StorageModel>([Duration delayCheck = const Duration(milliseconds: 50)]) → Stream<MT>
streamAsModels<MT extends StorageModel>([bool where(MT)?, Duration delayCheck = const Duration(milliseconds: 50)]) → Stream<List<MT>>
streamDocs() → Stream<Map<dynamic, StorageCollection>>
toString() → String
A string representation of this object.
override

Operators

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