Relation<Parent extends RelationalModel<Parent> , Child extends RelationalModel<Child> > constructor
const
Relation<Parent extends RelationalModel<Parent> , Child extends RelationalModel<Child> > ({
- required RelationalModel<
Child> child, - required RelationType type,
- required String foreignKey,
- String? localKey,
- RelationScope? scope,
- String? pivotTable,
- String? pivotForeignKey,
- String? pivotRelatedKey,
- String? morphTypeColumn,
- Map<
String, RelationalModel< ? morphMap,RelationalModel> >
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,
});