NimbostratusUpdateBatcher class

Constructors

NimbostratusUpdateBatcher({required FirebaseFirestore firestore, required Map<String, NimbostratusStateBloc> documents, required Future<NimbostratusDocumentSnapshot<T?>> update<T>(DocumentReference<T> ref, T data, {NimbostratusWriteBatch? batch, NimbostratusFromFirestore<T>? fromFirestore, bool isOptimistic, ToFirestore<T>? toFirestore, WritePolicy writePolicy}), required Future<NimbostratusDocumentSnapshot<T?>> modify<T>(DocumentReference<T> ref, T modifyFn(T? currentValue), {NimbostratusWriteBatch? batch, NimbostratusFromFirestore<T>? fromFirestore, bool isOptimistic, ToFirestore<T>? toFirestore, WritePolicy writePolicy})})

Properties

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

Methods

commit() Future<void>
commitOptimisticUpdates() → void
modify<T>(DocumentReference<T> ref, T modifyFn(T? currentValue), {WritePolicy writePolicy = WritePolicy.serverFirst, ToFirestore<T>? toFirestore, NimbostratusFromFirestore<T>? fromFirestore}) Future<NimbostratusDocumentSnapshot<T?>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rollback() → void
toString() String
A string representation of this object.
inherited
update<T>(DocumentReference<T> ref, T data, {WritePolicy writePolicy = WritePolicy.serverFirst, ToFirestore<T>? toFirestore, NimbostratusFromFirestore<T>? fromFirestore}) Future<NimbostratusDocumentSnapshot<T?>>

Operators

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