MPDirectionsRenderer class

Constructors

MPDirectionsRenderer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() Future<void>
Clears the route from the map
getSelectedLegFloorIndex() Future<int?>
Gets the currently selected leg's floor index.
nextLeg() Future<void>
Selects the next leg if possible.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previousLeg() Future<void>
Selects the previous leg if possible.
selectLegIndex(int legIndex) Future<void>
Manually set the selected leg index on the route.
setAnimatedPolyline(bool animated, bool repeating, int durationMs) Future<void>
Enable/Disable the polyline animation when displaying a route element on the map
setCameraAnimationDuration(int durationMs) Future<void>
Set the duration of camera animations (ms).
setCameraViewFitMode(MPCameraViewFitMode mpCameraViewFitMode) Future<void>
Set the MPCameraViewFitMode of the camera, when displaying route elements on the map.
setOnLegSelectedListener(OnLegSelectedListener? onLegSelectedListener) Future<void>
Set a listener, which will be invoked when a new leg has been selected
setPolyLineColors(String foreground, String background) Future<void>
Set the colors of the polyline
setRoute(MPRoute? route) Future<void>
Set a route to be rendered. This also resets the selected leg and step indices to 0.
showRouteLegButtons(bool show) Future<void>
Enable/Disable route leg buttons that are shown at the start and end of each leg.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited