copyWith method

ColumnSchema copyWith({
  1. String? name,
  2. String? type,
  3. QueryPrintable? preconstraints,
  4. List<ColumnConstrains>? constraints,
  5. List<String>? parameters,
})

Implementation

ColumnSchema copyWith({
  String? name,
  String? type,
  QueryPrintable? preconstraints,
  List<ColumnConstrains>? constraints,
  List<String>? parameters,
}) {
  return ColumnSchema(
    name ?? _name,
    type ?? _type,
    preconstraints: preconstraints ?? this.preconstraints,
    constraints: constraints ?? this.constraints,
    parameters: parameters ?? _parameters,
  );
}