PolylineMarker<T> constructor

PolylineMarker<T>({
  1. ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(),
  2. T? key,
  3. double strokeWidth = 2.0,
  4. int strokeColor = 0xff000000,
  5. List<double>? strokeDasharray,
  6. List<ILatLong> path = const [],
  7. int? strokeMinZoomLevel,
})

Implementation

PolylineMarker({
  super.zoomlevelRange,
  super.key,
  double strokeWidth = 2.0,
  int strokeColor = 0xff000000,
  List<double>? strokeDasharray,
  List<ILatLong> path = const [],
  int? strokeMinZoomLevel,
}) {
  _path = path.isEmpty ? Waypath.empty() : Waypath(path: path);
  renderinstruction = RenderinstructionPolyline(0);
  renderinstruction.setStrokeColorFromNumber(strokeColor);
  renderinstruction.setStrokeWidth(strokeWidth);
  renderinstruction.setStrokeDashArray(strokeDasharray);
  if (strokeMinZoomLevel != null) renderinstruction.setStrokeMinZoomLevel(strokeMinZoomLevel);
}