copyWith method

CommonTableExpr copyWith({
  1. TableAlias? alias,
  2. SqlQueryRef? query,
  3. Option<Ident>? from,
})

Returns a new instance by overriding the values passed as arguments

Implementation

CommonTableExpr copyWith({
  TableAlias? alias,
  SqlQueryRef? query,
  Option<Ident>? from,
}) =>
    CommonTableExpr(
        alias: alias ?? this.alias,
        query: query ?? this.query,
        from: from != null ? from.value : this.from);