RelationDefinition<T extends Model<T>> constructor

const RelationDefinition<T extends Model<T>>({
  1. required String name,
  2. required RelationType type,
  3. required T relatedFactory(),
  4. required String foreignKey,
  5. required String ownerKey,
  6. String? pivotTable,
  7. String? relatedPivotKey,
  8. String? foreignPivotKey,
})

Implementation

const RelationDefinition({
  required this.name,
  required this.type,
  required this.relatedFactory,
  required this.foreignKey,
  required this.ownerKey,
  this.pivotTable,
  this.relatedPivotKey,
  this.foreignPivotKey,
});