AddColumn constructor

AddColumn(
  1. String name, {
  2. Object? defaultValue,
  3. Object? compute(
    1. Map<String, dynamic> row
    )?,
  4. bool overwrite = false,
  5. String? sqlType,
  6. String? sqlExpression,
})

Implementation

AddColumn(
  this.name, {
  this.defaultValue,
  this.compute,
  this.overwrite = false,
  this.sqlType,
  this.sqlExpression,
}) : assert(
        defaultValue == null || compute == null,
        'Provide either defaultValue or compute for "$name", not both.',
      );