GmhPolylineOptions class
Constructors
-
GmhPolylineOptions.new({VoidCallback? onTap, List<AvoidableFeature>? avoid, VoidCallback? onNoRoute, int width = 10, int zIndex = 0, List<TransitMode>? transitModes, required String apiKey, bool visible = true, bool geodesic = false, Cap endCap = Cap.buttCap, Color color = Colors.black, Cap startCap = Cap.buttCap, TravelMode mode = TravelMode.driving, bool consumeTapEvents = false, bool optimizeWaypoints = false, List<LatLng> points = const <LatLng>[], JointType jointType = JointType.mitered, List<PatternItem> patterns = const <PatternItem>[]})
-
Google map's polyline options
const
Properties
-
apiKey
→ String
-
Google directions API key
final
-
avoid
→ List<AvoidableFeature>?
-
Features to avoid on the route.
final
-
color
→ Color
-
Line segment color in ARGB format, the same format used by Color. The default value is black (0xff000000).
final
-
consumeTapEvents
→ bool
-
True if the Polyline consumes tap events.
final
-
endCap
→ Cap
-
The cap at the end vertex of the polyline.
final
-
geodesic
→ bool
-
Indicates whether the segments of the polyline should be drawn as geodesics, as opposed to straight lines
on the Mercator projection.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
jointType
→ JointType
-
Joint type of the polyline line segments.
final
-
mode
→ TravelMode
-
Travel mode for the directions.
final
-
onNoRoute
→ VoidCallback?
-
callback function when no route is found between the markers
final
-
onTap
→ VoidCallback?
-
Callbacks to receive tap events for polyline placed on this map.
final
-
optimizeWaypoints
→ bool
-
Whether to optimize the waypoints provided in the request.
final
-
patterns
→ List<PatternItem>
-
The stroke pattern for the polyline.
final
-
points
→ List<LatLng>
-
The vertices of the polyline to be drawn.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
startCap
→ Cap
-
The cap at the start vertex of the polyline.
final
-
transitModes
→ List<TransitMode>?
-
Specify preferred modes of transit.
final
-
visible
→ bool
-
True if the polyline is visible.
final
-
width
→ int
-
Width of the polyline, used to define the width of the line segment to be drawn.
final
-
zIndex
→ int
-
The z-index of the polyline, used to determine relative drawing order of
map overlays.
final