FirestoreCollection class

Inheritance

Constructors

FirestoreCollection({required String id, required List<SQField> fields, SQDoc? parentDoc, SQUpdates updates = const SQUpdates(), List<SQAction>? actions, bool isLive = false})

Properties

actions List<SQAction>
finalinherited
docs List<SQDoc>
getter/setter pairinherited
fields List<SQField>
finalinherited
filters List<CollectionFilterField>
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String
finalinherited
isLive bool
finalinherited
isLoading bool
getter/setter pairinherited
onDocSaveCallback FutureOr<void> Function(SQDoc doc)?
getter/setter pairinherited
parentDoc SQDoc?
finalinherited
path String
finalinherited
ref ↔ CollectionReference<Object?>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updates SQUpdates
finalinherited

Methods

deleteDoc(SQDoc doc) Future<void>
override
getDoc(String id) SQDoc?
inherited
getField<F extends SQField>(String fieldName) → F?
inherited
hasDoc(SQDoc doc) bool
inherited
liveUpdates(SQDoc doc) Stream<DocData>
override
loadCollection() Future<void>
override
newDoc({Map<String, dynamic> source = const {}, String? id}) SQDoc
inherited
newDocId() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveCollection() Future<void>
override
saveDoc(SQDoc doc) Future<void>
override
toString() String
A string representation of this object.
inherited

Operators

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