MFPolyline constructor

const MFPolyline({
  1. required MFPolylineId polylineId,
  2. bool consumeTapEvents = false,
  3. Color color = Colors.black,
  4. MFPolylineStyle style = MFPolylineStyle.solid,
  5. List<MFLatLng> points = const <MFLatLng>[],
  6. bool visible = true,
  7. int width = 10,
  8. int zIndex = 0,
  9. VoidCallback? onTap,
})

Creates an immutable object representing a line drawn through geographical locations on the map.

Implementation

const MFPolyline({
  required this.polylineId,
  this.consumeTapEvents = false,
  this.color = Colors.black,
  this.style = MFPolylineStyle.solid,
  this.points = const <MFLatLng>[],
  this.visible = true,
  this.width = 10,
  this.zIndex = 0,
  this.onTap,
});