ReferenceDefinition class final
A reference binding: source.fieldId holds the key of a document in
targetCollectionId.
Constructors
- ReferenceDefinition({required int sourceCollectionId, required int fieldId, required int targetCollectionId, required OnDelete onDelete})
-
Creates a reference definition.
const
Properties
- fieldId → int
-
Field id holding the target key.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onDelete → OnDelete
-
Behaviour when a target is deleted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceCollectionId → int
-
Collection that owns the field.
final
- targetCollectionId → int
-
Collection the key points into.
final
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