dispose method

void dispose()

Disposes of the controller.

Implementation

void dispose() {
  _controller.dispose();
  _onDispose();
  if (kFlutterMemoryAllocationsEnabled) {
    FlutterMemoryAllocations.instance.dispatchObjectDisposed(object: this);
  }
}