Relationship<E extends DataModelMixin<E> , N> class
sealed
A Set
that models a relationship between one or more DataModelMixin objects
and their a DataModelMixin owner. Backed by a CoreNotifier.
Constructors
-
Relationship(Set<
E> ? models)
Properties
- db → Database
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- inverseName → String?
-
no setter
- isPresent → bool
-
Whether the relationship has a value.
no setter
-
keys
→ Set<
String> -
Returns keys in this relationship.
no setter
- length → int
-
no setter
- name → String
-
no setter
-
owner
→ DataModelMixin<
DataModelMixin> ? -
no setter
- ownerKey → String
-
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
-
adjacentRelationships<
R extends DataModelMixin< (R> >) → Iterable< Relationship< DataModelMixin, dynamic> > -
initialize(
{required String ownerKey, required String name, String? inverseName}) → Relationship< E, N> - Initializes this relationship (typically when initializing the owner in DataModelMixin) by supplying the owner, and related metadata.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → dynamic -
This is used to make
json_serializable
'sexplicitToJson
transparent. -
toString(
) → String -
A string representation of this object.
override
-
watch(
) → DelayedStateNotifier< N>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited