PolygonProperties<T extends Object> constructor
- Map<
LayerPolygonIndexes, String> ? layerProperties, - bool labeled = PolygonProperties.defLabeled,
- StrokePattern pattern = PolygonProperties.defIsDotted,
- PolygonLabelPlacementCalculator labelPlacementCalculator = PolygonProperties.defLabelPlacement,
- TextStyle labelStyle = PolygonProperties.defLabelStyle,
- bool rotateLabel = PolygonProperties.defRotateLabel,
- StrokeCap strokeCap = PolygonProperties.defStrokeCap,
- StrokeJoin strokeJoin = PolygonProperties.defStrokeJoin,
- Color? fillColor = PolygonProperties.defFillColor,
- String label = PolygonProperties.defLabel,
- T? hintValue,
- double borderStokeWidth = PolygonProperties.defBorderStokeWidth,
- Color borderColor = PolygonProperties.defBorderColor,
- bool disableHolesBorder = PolygonProperties.defDisableHolesBorder,
- bool isFilled = PolygonProperties.defIsFilled,
Creates a new PolygonProperties instance.
You can customize the rendering properties of polygons by providing values for the various parameters.
Example:
PolygonProperties properties = PolygonProperties(
fillColor: Colors.blue,
borderColor: Colors.red,
label: 'Polygon Label',
isFilled: true,
borderStokeWidth: 2,
);
Implementation
const PolygonProperties({
this.layerProperties,
this.labeled = PolygonProperties.defLabeled,
this.pattern = PolygonProperties.defIsDotted,
this.labelPlacementCalculator = PolygonProperties.defLabelPlacement,
this.labelStyle = PolygonProperties.defLabelStyle,
this.rotateLabel = PolygonProperties.defRotateLabel,
this.strokeCap = PolygonProperties.defStrokeCap,
this.strokeJoin = PolygonProperties.defStrokeJoin,
this.fillColor = PolygonProperties.defFillColor,
this.label = PolygonProperties.defLabel,
this.hintValue,
this.borderStokeWidth = PolygonProperties.defBorderStokeWidth,
this.borderColor = PolygonProperties.defBorderColor,
this.disableHolesBorder = PolygonProperties.defDisableHolesBorder,
this.isFilled = PolygonProperties.defIsFilled,
});