copyWith method
Creates a copy of the current operation with the specified operands, operator, and result.
Implementation
@override
TSimpleOperation copyWith({
List<String>? operands,
String? operator,
String? result,
bool? isLastOperandPercent,
}) {
return TSimpleOperation(
operands: operands ?? this.operands,
operator: operator ?? this.operator,
result: result ?? this.result,
isLastOperandPercent: isLastOperandPercent ?? this.isLastOperandPercent,
);
}