controller property

EventController<T> controller

Returns EventController associated with this Widget.

This will throw AssertionError if controller is called before its initialization is complete.

Implementation

EventController<T> get controller {
  if (_controller == null) {
    throw "EventController is not initialized yet.";
  }

  return _controller!;
}