NavigationView constructor

const NavigationView({
  1. Key? key,
  2. required MapOptions mapOptions,
  3. required dynamic onMapCreated(
    1. MapNavigationViewController
    ),
  4. dynamic onRouteProgressChange(
    1. RouteProgressEvent
    )?,
  5. VoidCallback? onRouteBuilding,
  6. dynamic onRouteBuilt(
    1. DirectionRoute
    )?,
  7. dynamic onRouteBuildFailed(
    1. String?
    )?,
  8. VoidCallback? onNavigationRunning,
  9. VoidCallback? onArrival,
  10. dynamic onMarkerClicked(
    1. int?
    )?,
  11. VoidCallback? onNavigationFinished,
  12. VoidCallback? onNavigationCancelled,
  13. VoidCallback? onMapMove,
  14. dynamic userOffRoute(
    1. LatLng?
    )?,
  15. VoidCallback? onMapMoveEnd,
  16. VoidCallback? onMapReady,
  17. VoidCallback? onMapRendered,
  18. dynamic onMapLongClick(
    1. LatLng?,
    2. Point<num>?
    )?,
  19. dynamic onMapClick(
    1. LatLng?,
    2. Point<num>?
    )?,
  20. dynamic onNewRouteSelected(
    1. DirectionRoute
    )?,
})

NavigationView is a widget that show a map with navigation it will response all events from the map and navigation and return all information about the route

Implementation

const NavigationView(
    {super.key,
    required this.mapOptions,
    required this.onMapCreated,
    this.onRouteProgressChange,
    this.onRouteBuilding,
    this.onRouteBuilt,
    this.onRouteBuildFailed,
    this.onNavigationRunning,
    this.onArrival,
    this.onMarkerClicked,
    this.onNavigationFinished,
    this.onNavigationCancelled,
    this.onMapMove,
    this.userOffRoute,
    this.onMapMoveEnd,
    this.onMapReady,
    this.onMapRendered,
    this.onMapLongClick,
    this.onMapClick,
    this.onNewRouteSelected});