Relationship<E extends DataModelMixin<E>, N> class abstract

A Set that models a relationship between one or more DataModelMixin objects and their a DataModelMixin owner. Backed by a GraphNotifier.

Implementers

Constructors

Relationship(Set<E>? models)

Properties

hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
no setter
isPresent bool
Whether the relationship has a value.
no setter
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

initialize({required DataModelMixin<DataModelMixin> owner, required String name, String? inverseName, Set<String>? overrideKeys}) Relationship<E, N>
Initializes this relationship (typically when initializing the owner in DataModelMixin) by supplying the owner, and related metadata. overrideKeys ignores if the relationship was previously initialized.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
This is used to make json_serializable's explicitToJson transparent.
toString() String
A string representation of this object.
override
watch() DelayedStateNotifier<N>

Operators

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