AFFirestoreDocument class

A document retrieved from cloud firestore.

This utility class makes it easier to treat results from firestore documents and snapshots the same. It also makes it easier to create test data without having a firestore connection.

Constructors

AFFirestoreDocument({required String documentId, required Map<String, dynamic> data, required bool exists})

Properties

data Map<String, dynamic>
getter/setter pair
documentId String
getter/setter pair
exists bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isNew bool
Returns true if this object has not yet been saved to firestore.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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