location property

Future<LatLng> location

经纬度

Implementation

Future<LatLng> get location {
  return platform(
    android: (pool) async {
      final point = await _androidModel.getPoint();
      return point == null
          ? null
          : LatLng(await point.getLatitude(), await point.getLongitude());
    },
    ios: (pool) async {
      final point = await _iosModel.get_location();
      return point == null
          ? null
          : LatLng(await point.get_latitude(), await point.get_longitude());
    },
  );
}