controller property
TabController
get
controller
TabController, accessible both within the ViewModel and from widgets.
The lifecycle of the returned controller is managed by this member, so manual calls to TabController.dispose are not required.
Implementation
TabController get controller {
final controller = _controller;
assert(
controller is TabController,
'ViewModel should be initialized first',
);
return controller!;
}