updateOutput method

void updateOutput(
  1. String newOutput
)

Update the output information and notify listeners.

Implementation

void updateOutput(String newOutput) {
  output = newOutput;
  notifyListeners();
}