PointWidget constructor

const PointWidget(
  1. List<Offset> points, {
  2. Color color = Colors.blue,
  3. double width = 50,
  4. double height = 50,
  5. double strokeWidth = 1.0,
  6. Key? key,
})

points - 点集合
color - 颜色
width - 画布宽度
height - 画布宽度
strokeWidth - 画笔粗细

Implementation

const PointWidget(
  this.points, {
  super.color = Colors.blue,
  super.width = 50,
  super.height = 50,
  super.strokeWidth = 1.0,
  super.key,
});