RouteRenderSettings class Routes & Navigation

A class that extends RenderSettings to provide additional rendering settings specifically for routes.

It includes colors and sizes for traveled path and turn arrows, fill color for the route, text size and colors for waypoints, and the line type for the route.

The traveledInnerColor field defines the color for the traveled part of the route.

The turnArrowInnerColor and turnArrowOuterColor fields define the colors for the inner and outer parts of the turn arrows.

The turnArrowInnerSz and turnArrowOuterSz fields define the sizes for the inner and outer parts of the turn arrows in millimeters.

The fillColor field defines the fill color for the route.

The waypointTextSz field defines the size for the waypoint text in millimeters.

The waypointTextInnerColor and waypointTextOuterColor fields define the colors for the inner and outer parts of the waypoint text.

The lineType field defines the type of line used for the route.

Inheritance

Constructors

RouteRenderSettings({Set<RouteRenderOptions> options = const <RouteRenderOptions>{RouteRenderOptions.showTraffic, RouteRenderOptions.showTurnArrows, RouteRenderOptions.showWaypoints, RouteRenderOptions.showHighlights}, Color innerColor = RenderSettings.defaultInnerColor, Color outerColor = RenderSettings.defaultOuterColor, double innerSz = RenderSettings.defaultInnerSize, double outerSz = RenderSettings.defaultOuterSize, LineType lineType = RenderSettings.defaultLineType, double imgSz = RenderSettings.defaultImageSize, double textSz = RenderSettings.defaultTextSize, Color textColor = RenderSettings.defaultTextColor, Color traveledInnerColor = Colors.transparent, Color turnArrowInnerColor = Colors.transparent, Color turnArrowOuterColor = Colors.transparent, double turnArrowInnerSz = RenderSettings.defaultInnerSize, double turnArrowOuterSz = RenderSettings.defaultOuterSize, double waypointTextSz = RenderSettings.defaultTextSize, Color waypointTextInnerColor = Colors.transparent, Color waypointTextOuterColor = Colors.transparent, Color fillColor = Colors.transparent, Color directionArrowInnerColor = Colors.transparent, Color directionArrowOuterColor = Colors.transparent})
RouteRenderSettings.fromJson(Map<String, dynamic> json)
factory

Properties

directionArrowInnerColor Color
Direction arrow inner color
getter/setter pair
directionArrowOuterColor Color
Direction arrow outer color
getter/setter pair
fillColor Color
The fill color for the route.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imagePosition ImagePosition
Image position
getter/setter pairinherited
imgSz double
The size of the image in millimeters.
getter/setter pairinherited
innerColor Color
The color for the inner area.
getter/setter pairinherited
innerSz double
The size for the inner area in millimeters.
getter/setter pairinherited
lineType LineType
The line type.
getter/setter pairinherited
options Set<RouteRenderOptions>
The set that defines what elements to show.
getter/setter pairinherited
outerColor Color
The color for the outer area.
getter/setter pairinherited
outerSz double
The size for the outer area in millimeters.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor Color
The color for the text.
getter/setter pairinherited
textSz double
The size for the text in millimeters.
getter/setter pairinherited
traveledInnerColor Color
The color of the traveled part of the route.
getter/setter pair
turnArrowInnerColor Color
The inner color of the turn arrows on the route.
getter/setter pair
turnArrowInnerSz double
The default inner size for turn arrows on the route in millimeters.
getter/setter pair
turnArrowOuterColor Color
The outer color of the turn arrows on the route.
getter/setter pair
turnArrowOuterSz double
The outer size of the turn arrows on the route in millimeters.
getter/setter pair
waypointTextInnerColor Color
The inner text color for waypoint labels on the route.
getter/setter pair
waypointTextOuterColor Color
The outer text color for waypoint labels on the route.
getter/setter pair
waypointTextSz double
The text size for waypoints on the route in millimeters.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonWithOptions(dynamic optionsSerializer(Set options)) Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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