close method
Closes the instance. This method should be called when the instance is no longer needed. Once close is called, the instance can no longer be used.
Implementation
@override
Future<void> close() async {
for (var e in _stepValidationSubs.values) {
e.cancel();
}
_formBlocStateSubscription?.cancel();
_isValidDone = null;
for (final fieldBloc in state.flatFieldBlocs()!) {
fieldBloc.close();
}
unawaited(_setupAreAllFieldsValidSubscriptionSubscription.cancel());
unawaited(super.close());
}