dispose method
Used to perform any disposing logic for the TBaseViewModel.
This method is called in the TViewModelBuilderState.initState method.
Implementation
@override
@mustCallSuper
Future<void> dispose() async {
await _controller.close();
await _streamSubscription?.cancel();
_eventMap.clear();
super.dispose();
}