判断GPS是否开启,GPS或者AGPS开启一个就认为是开启的
Future<bool> getGPSStatus() async { if (!supportPlatform) return false; final bool? state = await curiosityChannel.invokeMethod('getGPSStatus'); return state ?? false; }