destroyStreams method

Future<bool> destroyStreams()

Destroys the event channel and stream handler.

Implementation

Future<bool> destroyStreams() async {
  _subscription?.cancel();
  return await _channel.invokeMethod("dispose");
}