EntityRelation<T> class

Définition d'une relation entre entités

Constructors

EntityRelation.new({required String targetCollection, required String foreignKey, required T fromDocument(FirestoreDocument document), bool autoLoad = false})
Constructeur pour définir une relation

Properties

autoLoad bool
Indique si la relation est à charger automatiquement
final
foreignKey String
Champ dans la collection cible qui fait référence à l'entité parente
final
fromDocument → T Function(FirestoreDocument document)
Fonction pour créer une entité à partir d'un document
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetCollection String
Nom de la collection cible
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