dispose method

void dispose()

The dispose method should always be called when the application is done using this plugin so it has the chance to clean up its resources.

Implementation

void dispose() {
  _channel.setMethodCallHandler(null);
  _statusStreamController.close();
}