Polyline constructor
Polyline({
- required List<
LatLng> points, - double width = 10,
- bool visible = true,
- bool geodesic = false,
- double alpha = 1.0,
- DashLineType dashLineType = DashLineType.none,
- CapType capType = CapType.butt,
- JoinType joinType = JoinType.bevel,
- BitmapDescriptor? customTexture,
- ArgumentCallback<
String> ? onTap, - Color color = const Color(0xCCC4E0F0),
默认构造函数
Implementation
Polyline({
required this.points,
double width = 10,
this.visible = true,
this.geodesic = false,
double alpha = 1.0,
this.dashLineType = DashLineType.none,
this.capType = CapType.butt,
this.joinType = JoinType.bevel,
this.customTexture,
this.onTap,
this.color = const Color(0xCCC4E0F0),
}) : assert(points.isNotEmpty),
width = (width <= 0 ? 10 : width),
alpha = (alpha < 0 ? 0 : (alpha > 1 ? 1 : alpha)),
super();