pickData method

Future<PickedData> pickData({
  1. required double latitude,
  2. required double longitude,
})

Implementation

Future<PickedData> pickData(
    {required double latitude, required double longitude}) async {
  LatLong latLong = LatLong(latitude: latitude, longitude: longitude);

  Map<String, dynamic> decodedResponse =
      await HttpRequestCustom.requestWithLatLng(
          latitude: latLong.latitude, longitude: latLong.longitude);
  notifyListener();
  return PickedData.fromJson(decodedResponse, latLong);
}