FireDocTuple<T> class

Inheritance

Constructors

FireDocTuple(QueryDocumentSnapshot<Map<String, dynamic>> snapshot, T convertor(Map<String, dynamic>))
FireDocTuple.byRefData(DocumentReference<Map<String, dynamic>> reference, T data)

Properties

data → T
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addToList<T>(String key, T value) Future<void>
inherited
checkFieldExists(String field) Future<bool>
inherited
convert<T>(T convertor(Map<String, dynamic>)) Future<T?>
convert map to data that you want, you can use freeze like: childrenResult.convert(YouDataset.fromJson)
inherited
convertForce<T>(T convertor(Map<String, dynamic>)) Future<T>
inherited
convertStream<T>(T convertor(Map<String, dynamic>)) Stream<T?>
convert stream version.
inherited
convertStreamForce<T>(T convertor(Map<String, dynamic>)) Stream<T>
inherited
delete() Future<void>
inherited
get() Future<Map<String, dynamic>?>
inherited
getCheckbox(String key) Widget
get a checkbox widget the data of key must be bool
inherited
getColl(String name) FireColl
Coll is a collection in firestore Coll just can include documents
inherited
getDocFromField(String field) Future<FireDoc?>
inherited
getID() String
inherited
getIncludeIDMap() Future<Map<String, dynamic>?>
this Get will include id in the map.
inherited
getMapRef() Object
use this to add a reference to a field like ...set({'rr':fireDoc.getMapRef()})
inherited
getValue(String key) Future<Object?>
!!! Be careful !!!
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readStream() Stream<Map<String, dynamic>?>
TODO: research this function when doc not exists? when doc exists? when doc exists but no data? when doc delete?
inherited
set(Map<String, dynamic> data) Future<void>
inherited
toString() String
A string representation of this object.
inherited
update(Map<String, dynamic> data) Future<String>
Updates data on the document. Data will be merged with any existing document data.
inherited

Operators

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