dispose method

void dispose()

Disposes the controller.

Implementation

void dispose() {
  if (_controller != null) {
    _controller!.dispose();
    _controller = null;
  }
}