Polygon static method
Polygon
Polygon(
- List 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,
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,
);
}