toString method

  1. @override
String toString()
override

Returns the string representation of the expression.

This method should provide a human-readable format of the expression, suitable for display or printing.

Returns:

  • A String representing the expression.

Implementation

@override
String toString() {
  return "exp(${operand.toString()})";
}