Polyline constructor

const Polyline({
  1. required String id,
  2. required List<LatLng> points,
  3. void onTap()?,
  4. Color? color = Colors.black,
  5. int width = 10,
  6. Color outlineColor = Colors.black,
  7. bool isDottedLine = false,
  8. int outlineWidth = 0,
  9. List<double> intervals = const <double>[],
  10. double zIndex = 0.0,
})

Implementation

const Polyline({
  required this.id,
  required this.points,
  this.onTap,
  this.color = Colors.black,
  this.width = 10,
  this.outlineColor = Colors.black,
  this.isDottedLine = false,
  this.outlineWidth = 0,
  this.intervals = const <double>[],
  this.zIndex = 0.0,
});