dispose method

Future<void> dispose()

Deallocate all resources and disables further use of the controller.

Implementation

Future<void> dispose() {
  _instance = null;
  _isDisposed = true;
  return configurator.dispose();
}