InsertForeignKey constructor

const InsertForeignKey(
  1. String localTableName,
  2. String foreignTableName, {
  3. String? foreignKeyColumn,
  4. bool onDeleteCascade = false,
  5. bool onDeleteSetDefault = false,
})

Implementation

const InsertForeignKey(
  this.localTableName,
  this.foreignTableName, {
  String? foreignKeyColumn,
  this.onDeleteCascade = false,
  this.onDeleteSetDefault = false,
}) : // Do not change this default without changing `foreignKeyColumnName`;
      // it wasn't invoked because functions aren't `const`
      foreignKeyColumn = foreignKeyColumn ?? '$foreignTableName${InsertTable.PRIMARY_KEY_COLUMN}';