Polyline constructor

const Polyline({
  1. required PolylineId polylineId,
  2. bool consumeTapEvents = false,
  3. Color color = Colors.black,
  4. Cap polylineCap = Cap.buttCap,
  5. JointType jointType = JointType.round,
  6. List<LatLng> points = const <LatLng>[],
  7. List<PatternItem> patterns = const <PatternItem>[],
  8. bool visible = true,
  9. int width = 10,
  10. int? zIndex,
  11. VoidCallback? onTap,
})

Implementation

const Polyline({
  required this.polylineId,
  this.consumeTapEvents = false,
  this.color = Colors.black,
  this.polylineCap = Cap.buttCap,
  this.jointType = JointType.round,
  this.points = const <LatLng>[],
  this.patterns = const <PatternItem>[],
  this.visible = true,
  this.width = 10,
  this.zIndex,
  this.onTap,
});