DatabaseColumnRef constructor

  1. @literal
const DatabaseColumnRef(
  1. String name,
  2. String refTableName, {
  3. String refColumnName = 'ROWID',
  4. bool unique = false,
})

Implementation

@literal
const DatabaseColumnRef(
  String name,
  String refTableName, {
  String refColumnName = 'ROWID',
  bool unique = false,
}) : super(
        name,
        constraints: 'REFERENCES $refTableName($refColumnName)',
        unique: unique,
        indexed: true,
      );