initializeCalculatorState method

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

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;
}