close method
Closes the bloc by disconnecting from the data provider.
This method is called when the bloc is no longer needed and should perform cleanup tasks, such as disconnecting from the data provider.
Implementation
@override
@mustCallSuper
void close() {
if (!closed && canClose()) {
debugLog('closing calculator bloc...', debugLabel: debugLabel);
dataProvider.disconnect();
super.close();
}
}