location property

Future<LatLng> location

经纬度

Implementation

Future<LatLng> get location {
  return platform(
    android: (pool) async {
      final location = await _androidModel?.getLatLonPoint();
      if (location != null) {
        return LatLng(
          await location.getLatitude(),
          await location.getLongitude(),
        );
      } else {
        return null;
      }
    },
    ios: (pool) async {
      if (_iosModelLocation != null) {
        return LatLng(
          await _iosModelLocation.get_latitude(),
          await _iosModelLocation.get_longitude(),
        );
      } else {
        return null;
      }
    },
  );
}