clearCalculatorState method

  1. @override
  2. @mustCallSuper
Future<S> clearCalculatorState()
override

Clears the calculator state by clearing the calculator document.

This method is called when the calculator state needs to be reset.

Implementation

@override
@mustCallSuper
Future<S> clearCalculatorState() async {
  await clearCalculatorDocument();
  document = await retrieveCalculatorDocument();

  return super.clearCalculatorState();
}