controller property

JController<T> get controller
inherited

The controller bound by the most recent invocation.

Throws StateError before the first invocation. Await work started in onInvoke before returning so it cannot outlive this execution's binding.

Implementation

JController<T> get controller =>
    _controller ??
    (throw StateError(
      '$runtimeType has not been invoked with a controller.',
    ));