clone method

  1. @override
TSimpleOperation clone()
override

Creates a clone of the current operation.

Implementation

@override
TSimpleOperation clone() {
  return TSimpleOperation(
    operands: List<String>.from(operands),
    operator: operator,
    result: result,
    isLastOperandPercent: isLastOperandPercent,
  );
}