relationships/relationship_helpers library

Mixins

HasParent

Functions

addManyToMany(ReactiveModel owner, List<ReactiveModel> sharedChildren, {Symbol? field, bool notifyOwner = true}) → void
Many ↔ Many relationship Adds multiple shared children to owner
addManyToOne(ReactiveModel parent, ReactiveModel child, {Symbol? field, bool notifyParent = true}) → void
removeFromParent(ReactiveModel parent, ReactiveModel child, {Symbol? field}) → void
Remove child from parent (Many → One)
removeManyToMany(ReactiveModel owner, List<ReactiveModel> sharedChildren, {Symbol? field}) → void
Remove shared children from owner