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 _annotation = await _iosModel.get_annotation(viewChannel: false);
      final _location = await _annotation.get_coordinate();
      return LatLng(await _location.latitude, await _location.longitude);
    },
  );
}