OneToOne constructor

const OneToOne({
  1. required Type targetEntity,
  2. String? mappedBy,
  3. String? foreignKey,
  4. String referencedColumn = 'id',
  5. bool isOwning = false,
  6. bool cascadeDelete = false,
  7. bool lazyLoad = true,
  8. bool eagerLoad = false,
  9. bool nullable = true,
  10. bool unique = true,
  11. RelationAction onDelete = RelationAction.noAction,
  12. RelationAction onUpdate = RelationAction.noAction,
})

Implementation

const OneToOne({
  required this.targetEntity,
  this.mappedBy,
  this.foreignKey,
  this.referencedColumn = 'id',
  this.isOwning = false,
  this.cascadeDelete = false,
  this.lazyLoad = true,
  this.eagerLoad = false,
  this.nullable = true,
  this.unique = true,
  this.onDelete = RelationAction.noAction,
  this.onUpdate = RelationAction.noAction,
});