isCalculatorStateDirty method

  1. @protected
Future<bool> isCalculatorStateDirty()

Checks if the calculator state is dirty, i.e., different from the default state.

Returns a future of true if the state is dirty, otherwise false.

Implementation

@protected
Future<bool> isCalculatorStateDirty() async {
  return defaultCalculatorState.fields != currentState.fields;
}