Rectangle static method
Rectangle
Rectangle(
- List latlngs, {
- bool? stroke,
- Color? strokeColor,
- double strokeWidth = strokeWidthRectangleDef,
- double strokeOpacity = strokeOpacityRectangleDef,
- 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.Rectangle Rectangle(
List<dynamic> latlngs, {
bool? stroke,
Color? strokeColor,
double strokeWidth = strokeWidthRectangleDef,
double strokeOpacity = strokeOpacityRectangleDef,
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.Rectangle.from(
latlngs,
stroke: stroke,
strokeColor: strokeColor ?? fillColor,
strokeWidth: strokeWidth,
strokeOpacity: strokeOpacity,
strokeCap: strokeCap,
strokeJoin: strokeJoin,
pathFillType: pathFillType,
fillColor: fillColor,
fillOpacity: fillOpacity,
gradientStrokeColors: gradientStrokeColors,
gradientStrokeStops: gradientStrokeStops,
gradientFillColors: gradientFillColors,
gradientFillStops: gradientFillStops,
isDotted: isDotted,
data: data,
);
}