controller property

T get controller

Getter for the controller instance.

Implementation

T get controller {
  if (_controller == null) {
    _controller = _controllerBuilder?.call();
    _subscribeToController();
    if (_controller == null) {
      throw BindError<String>(controller: "$T", tag: widget.tag);
    }
    return _controller!;
  } else {
    return _controller!;
  }
}