destroy method
销毁定位
Implementation
Future<void> destroy() async {
try {
await _methodChannel.invokeMethod<void>('destroy', {
'pluginKey': _pluginKey,
});
} finally {
if (_subscription != null) {
await _receiveStream?.close();
await _subscription?.cancel();
_receiveStream = null;
_subscription = null;
}
}
}