HasOne constructor

const HasOne(
  1. {String localKey,
  2. String foreignKey,
  3. String foreignTable,
  4. bool cascadeOnDelete = false}
)

Implementation

const HasOne(
    {String localKey,
    String foreignKey,
    String foreignTable,
    bool cascadeOnDelete = false})
    : super(RelationshipType.hasOne,
          localKey: localKey,
          foreignKey: foreignKey,
          foreignTable: foreignTable,
          cascadeOnDelete: cascadeOnDelete == true);