show static method

void show(
  1. BuildContext context,
  2. String mapApiKey,
  3. PlaceSelected placeSelected, {
  4. LatLng? initialLocation,
  5. String? title,
})

Implementation

static void show(
    BuildContext context, String mapApiKey, PlaceSelected placeSelected,
    {LatLng? initialLocation, String? title}) {
  Navigator.of(context).push(MaterialPageRoute(
    builder: (context) => _MapScreen(
      mapApiKey: mapApiKey,
      placeSelected: placeSelected,
      defaultLocation:
          initialLocation ?? const LatLng(45.521563, -122.677433),
      title: title,
    ),
  ));
}