PolygonProperties<T extends Object> constructor

const PolygonProperties<T extends Object>({
  1. Map<LayerPolygonIndexes, String>? layerProperties,
  2. bool labeled = PolygonProperties.defLabeled,
  3. StrokePattern pattern = PolygonProperties.defIsDotted,
  4. PolygonLabelPlacementCalculator labelPlacementCalculator = PolygonProperties.defLabelPlacement,
  5. TextStyle labelStyle = PolygonProperties.defLabelStyle,
  6. bool rotateLabel = PolygonProperties.defRotateLabel,
  7. StrokeCap strokeCap = PolygonProperties.defStrokeCap,
  8. StrokeJoin strokeJoin = PolygonProperties.defStrokeJoin,
  9. Color? fillColor = PolygonProperties.defFillColor,
  10. String label = PolygonProperties.defLabel,
  11. T? hintValue,
  12. double borderStokeWidth = PolygonProperties.defBorderStokeWidth,
  13. Color borderColor = PolygonProperties.defBorderColor,
  14. bool disableHolesBorder = PolygonProperties.defDisableHolesBorder,
  15. 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,
});