detach method

void detach()

Detach from the current controller.

Implementation

void detach() {
  _controller?.removeListener(check);
  _controller = null;
}