2
onPanEnd: (details) {
          pointsList.add(null);
          
          pointsStream.add(pointsList);
           },

class DrawModel {
  final Offset offset;
  final Paint paint;
  

      DrawModel({required this.offset, required this.paint});

}

错误:无法将参数类型“Null”分配给参数类型“DrawModel”

4

1 回答 1

1

这是你要找的吗?

List<DrawModel?> pointList = [];
于 2022-02-04T07:53:58.543 回答