copyWith method

SetVariable copyWith({
  1. bool? local,
  2. bool? hivevar,
  3. ObjectName? variable,
  4. List<Expr>? value,
})

Returns a new instance by overriding the values passed as arguments

Implementation

SetVariable copyWith({
  bool? local,
  bool? hivevar,
  ObjectName? variable,
  List<Expr>? value,
}) =>
    SetVariable(
        local: local ?? this.local,
        hivevar: hivevar ?? this.hivevar,
        variable: variable ?? this.variable,
        value: value ?? this.value);