controller property
GetRootState
get
controller
Implementation
static GetRootState get controller {
if (_controller == null) {
throw Exception(
'GetRoot is not part of the widget tree.\n'
'Ensure that GetRoot is properly included in the widget tree as an ancestor widget. '
'The context used must be a descendant of a GetRoot widget for the operation to work correctly.',
);
} else {
return _controller!;
}
}