destroy method

Future<void> destroy()

销毁

Implementation

Future<void> destroy() async {
  await _channel.invokeMethod('destroy');
  await _sub?.cancel();
  _sub = null;
}