initializeCalculatorState method
Initializes the calculator state with the calculator document.
This method is called after the bloc is initialized and the calculator documents are retrieved.
Implementation
@override
@mustCallSuper
Future<S> initializeCalculatorState() async {
return initialState!.copyWith(fields: document.toFields()) as S;
}