PointWidget constructor

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

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

Implementation

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