controller property

StateXController? get controller
inherited

Provide the 'main' controller to this State object. If _controller == null, get the 'first assigned' controller if any.

Implementation

StateXController? get controller => _controller ??= firstCon;