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< d, T create()) → List<String, dynamic> >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< refs) → Future<DatabaseObject> >List< U> > -
Creates a new document in the specified
CollectionReference
and sets theref
to the newly created document.