length property

int get length

Returns the total length of the current operation.

Implementation

int get length {
  return operands.fold<int>(0, (sum, operand) => sum + operand.length) +
      (operator?.length ?? 0);
}