toReference<T extends DatabaseObject> method
Returns the string representation of the object.
Implementation
FirebaseObjectReference<T> toReference<T extends DatabaseObject>(
T Function() create,
[String? name]) {
name ??= toMap()['name'] ?? ref!.id;
return FirebaseObjectReference(ref!, name!, create);
}