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

class DrawModel {
  final Offset offset;
  final Paint paint;
  

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

}

Error:The argument type 'Null' can't be assigned to the parameter type 'DrawModel

1 Answers1

2

Is this what you're looking for?

List<DrawModel?> pointList = [];
Josteve
  • 11,459
  • 1
  • 23
  • 35