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 {
  assert(_controllerAdded, "EventController is not initialized yet.");

  return _controller;
}