clearCalculatorDocument method

  1. @protected
Future<void> clearCalculatorDocument({
  1. bool force = false,
})

Clears the calculator document.

This method is called when the calculator state is cleared.

Implementation

@protected
Future<void> clearCalculatorDocument({bool force = false}) async {
  if (force || await canSaveUserEntry()) {
    debugLog('clearing calculator bloc document', debugLabel: debugLabel);

    return dataProvider.clearCalculatorDocument();
  }
}