destroy method

void destroy()

销毁定位

Implementation

void destroy() {
  _methodChannel.invokeListMethod('destroy', {'pluginKey': _pluginKey});
  if (_subscription != null) {
    _receiveStream?.close();
    _subscription?.cancel();
    _receiveStream = null;
    _subscription = null;
  }
}