Polygon constructor

const Polygon({
  1. Key? key,
  2. required List<Point> points,
  3. Color? edgeColor = Colors.red,
  4. double? edgeWidth = 2.0,
  5. Color? bodyColor = Colors.red,
  6. double? pointSize = 5,
  7. Color? pointColor = Colors.black,
  8. GestureDragUpdateCallback? onPanUpdate,
  9. GestureDragDownCallback? onPanDown,
  10. GestureDragEndCallback? onPanEnd,
  11. double? containerWidth,
  12. double? containerHeight,
  13. 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,
});