location property

Future<LatLng> location

Implementation

Future<LatLng> get location {
  return platform(
    android: (_) async {
      final _location = await _androidModel.getPosition();
      return LatLng(
        await _location.get_latitude(),
        await _location.get_longitude(),
      );
    },
    ios: (_) async {
      final location = await _iosModel.get_coordinate();
      return LatLng(await location.latitude, await location.longitude);
    },
  );
}