Polygon constructor
const
Polygon({
- Key? key,
- required List<
Point> points, - Color? edgeColor = Colors.red,
- double? edgeWidth = 2.0,
- Color? bodyColor = Colors.red,
- double? pointSize = 5,
- Color? pointColor = Colors.black,
- GestureDragUpdateCallback? onPanUpdate,
- GestureDragDownCallback? onPanDown,
- GestureDragEndCallback? onPanEnd,
- double? containerWidth,
- double? containerHeight,
- Widget? child,
Implementation
const Polygon({super.key,
required this.points,
this.edgeColor = Colors.red,
this.edgeWidth = 2.0,
this.bodyColor = Colors.red,
this.pointSize = 5,
this.pointColor = Colors.black,
this.onPanUpdate,
this.onPanDown,
this.onPanEnd,
this.containerWidth,
this.containerHeight,
this.child,
});