DuplicateDatabaseObject class abstract

An abstract class representing a database object.

Inheritance

Properties

duplicateRefs List<DocumentReference<Object?>>
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
isMainObject bool
no setter
mainObjectRef ↔ DocumentReference<Object?>?
getter/setter pair
ref ↔ DocumentReference<Object?>?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(CollectionReference<Object?> d) Future<void>
Creates a new document in the specified CollectionReference and sets the ref to the newly created document.
inherited
createDuplicate<T extends DuplicateDatabaseObject>(DocumentReference<Object?> r, T creator()) Future<T>
createDuplicateIn<T extends DuplicateDatabaseObject>(CollectionReference<Object?> c, T creator()) Future<T>
createInPath(String d) Future<void>
Creates a new document in the specified collection path and sets the ref to the newly created document.
inherited
createWithPath(String d) Future<void>
Creates a new document with the specified path and sets the ref to the newly created document.
inherited
delete() Future<void>
Deletes the document referenced by ref.
override
deleteDuplicate(DocumentReference<Object?> r) Future<void>
fromMap(Map<String, dynamic> d) → void
Populates the object from a map representation.
override
fromSnapshot(DocumentSnapshot<Object?> d) → void
Populates the object from a DocumentSnapshot.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() Future<void>
Reloads the data of the document referenced by ref.
inherited
toMap() Map<String, dynamic>
Converts the object to a map representation.
override
toReference<T extends DatabaseObject>(T create(), [String? name]) FirebaseObjectReference<T>
Returns the string representation of the object.
inherited
toString() String
A string representation of this object.
inherited
update([DocumentReference<Object?>? refe]) Future<void>
If refe is provided, it sets the ref to the new reference. Also updates all duplicates.
override

Operators

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