onErrorShown method Null safety

void onErrorShown(
  1. CalculatorError err,
  2. StackTrace? stack
)

Called at the moment a calculator error is shown, whether a program is running or not. If a program is running, this should be followed by onError().

Implementation

void onErrorShown(CalculatorError err, StackTrace? stack) {}