ArrayRelation<T> class

Définition d'une relation par tableau d'IDs

Constructors

ArrayRelation.new({required String targetCollection, required String arrayField, required T fromDocument(FirestoreDocument document), bool autoLoad = false})
Constructeur pour définir une relation de type tableau

Properties

arrayField String
Nom du champ dans l'entité parent qui contient le tableau d'IDs
final
autoLoad bool
Indique si la relation est à charger automatiquement
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