Relation<Parent extends RelationalModel<Parent>, Child extends RelationalModel<Child>> constructor

const Relation<Parent extends RelationalModel<Parent>, Child extends RelationalModel<Child>>({
  1. required RelationalModel<Child> child,
  2. required RelationType type,
  3. required String foreignKey,
  4. String? localKey,
  5. RelationScope? scope,
  6. String? pivotTable,
  7. String? pivotForeignKey,
  8. String? pivotRelatedKey,
  9. String? morphTypeColumn,
  10. Map<String, RelationalModel<RelationalModel>>? morphMap,
})

Implementation

const Relation({
  required this.child,
  required this.type,
  required this.foreignKey,
  this.localKey,
  this.scope,
  this.pivotTable,
  this.pivotForeignKey,
  this.pivotRelatedKey,
  this.morphTypeColumn,
  this.morphMap,
});