disposeViewModel property
Whether this component owns the lifecycle of the provided viewModel.
When true, disposing the CurrentState will also dispose the CurrentViewModel.
Set this to false when the viewModel is managed externally and should survive component disposal so it can be rebound later.
Implementation
final bool disposeViewModel;