Polyline constructor

Polyline(
  1. {@required List<LatLng> points,
  2. double width: 10,
  3. bool visible: true,
  4. bool geodesic: false,
  5. double alpha: 1.0,
  6. DashLineType dashLineType: DashLineType.none,
  7. CapType capType: CapType.butt,
  8. JoinType joinType: JoinType.bevel,
  9. BitmapDescriptor customTexture,
  10. ArgumentCallback<String> onTap,
  11. Color color: const Color(0xCCC4E0F0)}
)

/ 默认构造函数

Implementation

Polyline({
  @required this.points,
  this.width = 10,
  this.visible = true,
  this.geodesic = false,
  this.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 != null && points.length > 0),
      super();