onLocationSelect function
Implementation
void onLocationSelect(BuildContext context, LatLng point,
{String? displayName}) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
SelectedLocation(displayName ?? 'Your location', point)));
}