ManyToMany<T extends DatumEntityInterface> constructor

ManyToMany<T extends DatumEntityInterface>(
  1. RelationalDatumEntity parent,
  2. DatumEntityInterface pivotEntity,
  3. String thisForeignKey,
  4. String otherForeignKey, {
  5. String thisLocalKey = 'id',
  6. String otherLocalKey = 'id',
  7. List<T>? value,
  8. CascadeDeleteBehavior cascadeDeleteBehavior = CascadeDeleteBehavior.none,
})

Implementation

ManyToMany(
  super.parent,
  this.pivotEntity,
  this.thisForeignKey,
  this.otherForeignKey, {
  this.thisLocalKey = 'id',
  this.otherLocalKey = 'id',
  List<T>? value,
  super.cascadeDeleteBehavior = CascadeDeleteBehavior.none,
}) {
  _value = value;
  if (value != null) {
    _isLoaded = true;
  }
}