Polygon static method

Polygon Polygon(
  1. List latlngs, {
  2. bool stroke = strokePolygonDef,
  3. Color? strokeColor,
  4. double strokeWidth = strokeWidthPolygonDef,
  5. double strokeOpacity = strokeOpacityPolygonDef,
  6. StrokeCap strokeCap = strokeCapDef,
  7. StrokeJoin strokeJoin = strokeJoinDef,
  8. PathFillType pathFillType = pathFillTypeDef,
  9. Color? fillColor,
  10. double fillOpacity = fillOpacityDef,
  11. List<Color> gradientStrokeColors = gradientColorsDef,
  12. List<double> gradientStrokeStops = gradientStopsDef,
  13. List<Color> gradientFillColors = gradientColorsDef,
  14. List<double> gradientFillStops = gradientStopsDef,
  15. bool isDotted = isDottedDef,
  16. dynamic data,
})

Implementation

static L.Polygon Polygon(
  List<dynamic> latlngs, {
  bool stroke = strokePolygonDef,
  Color? strokeColor,
  double strokeWidth = strokeWidthPolygonDef,
  double strokeOpacity = strokeOpacityPolygonDef,
  StrokeCap strokeCap = strokeCapDef,
  StrokeJoin strokeJoin = strokeJoinDef,
  PathFillType pathFillType = pathFillTypeDef,
  Color? fillColor,
  double fillOpacity = fillOpacityDef,
  List<Color> gradientStrokeColors = gradientColorsDef,
  List<double> gradientStrokeStops = gradientStopsDef,
  List<Color> gradientFillColors = gradientColorsDef,
  List<double> gradientFillStops = gradientStopsDef,
  bool isDotted = isDottedDef,
  dynamic data,
}) {
  return L.Polygon.from(
    latlngs,
    stroke: stroke,
    strokeColor: strokeColor ?? fillColor,
    strokeWidth: strokeWidth,
    strokeOpacity: strokeOpacity,
    strokeCap: strokeCap,
    strokeJoin: strokeJoin,
    fillColor: fillColor,
    fillOpacity: fillOpacity,
    pathFillType: pathFillType,
    gradientStrokeColors: gradientStrokeColors,
    gradientStrokeStops: gradientStrokeStops,
    gradientFillColors: gradientFillColors,
    gradientFillStops: gradientFillStops,
    isDotted: isDotted,
    data: data,
  );
}