copyWith method

SqlString copyWith({
  1. String? sql,
  2. List? bindings,
  3. String? method,
  4. String? pluck,
})

Create a copy with different values

Implementation

SqlString copyWith({
  String? sql,
  List<dynamic>? bindings,
  String? method,
  String? pluck,
}) {
  return SqlString(
    sql ?? this.sql,
    bindings ?? this.bindings,
    method: method ?? this.method,
    pluck: pluck ?? this.pluck,
  );
}