createDistanceMarker method
Function to create distance marker
Implementation
Future<void> createDistanceMarker(
LatLng startLocation, LatLng _location) async {
LatLng center = await getCenterLatLong([startLocation, _location]);
String dist = await calculateDistance(startLocation, _location);
_distance = dist;
_distanceLocation.add(center);
notifyListeners();
///Create distance marker function
await Future.delayed((Duration(milliseconds: 100)));
Uint8List? distanceIcon = await getUint8List(distanceKey);
setMarkerLocation(dist, center, distanceIcon);
notifyListeners();
}