FireStoreCollection class

todo: This has to be split up to a parent class.

Constructors

FireStoreCollection(String path)

Properties

collection → CollectionReference<Object?>?
no setter
ex Exception
no getter
hashCode int
The hash code for this object.
no setterinherited
inError bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid String
no setter

Methods

add(Map<String, dynamic> data) Future<String>
currentUser() Future<User?>
The current user. No longer async operation but we'll keep it backward-compatible.
delete(String? docId) Future<bool>
getError([Object? ex]) Exception
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runTransaction(TransactionHandler transactionHandler, {Duration timeout = const Duration(seconds: 10)}) Future<Map<String, dynamic>>
Doubled the attempt duration to 10 seconds.
setError(Object ex) Exception
toString() String
A string representation of this object.
inherited
update(String path, Map<String, dynamic> data) Future<bool>

Operators

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