stopLocation method
停止定位
Implementation
Future<void> stopLocation() {
return platform(
android: (pool) async {
await _locationController?.close();
_locationController = null;
await _androidClient?.stopLocation();
},
ios: (pool) async {
await _locationController?.close();
_locationController = null;
await _iosClient?.stopUpdatingLocation();
},
);
}