FirebaseObjectReference<T extends DatabaseObject> class

A reference to a DatabaseObject stored in Firebase.

Constructors

FirebaseObjectReference.new(DocumentReference<Object?> documentReference, String name, T create())

Properties

create → T Function()
final
documentReference → DocumentReference<Object?>
final
hashCode int
The hash code for this object.
no setteroverride
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load() Future<T>
Loads the DatabaseObject from the DocumentReference and caches it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromList<T extends DatabaseObject>(List<Map<String, dynamic>> d, T create()) List<FirebaseObjectReference<T>>
fromMap<T extends DatabaseObject>(Map<String, dynamic> map, T create()) FirebaseObjectReference<T>
Creates a FirebaseObjectReference from a map.
loadAll<U extends DatabaseObject>(List<FirebaseObjectReference<DatabaseObject>> refs) Future<List<U>>
Creates a new document in the specified CollectionReference and sets the ref to the newly created document.