onLocationSelect function

void onLocationSelect(
  1. BuildContext context,
  2. LatLng point, {
  3. String? displayName,
})

Implementation

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