I'm creating a drawing app using flutter. I've used gesturedetector onpanstart, onpanend, onpanupdate. But I have to close the array of offsets. Because of null safety I am not able to use 'null'. how can I add a null value on the List or end up the list somehow. or any other ways to make a drawing app using flutter.
onPanEnd:(details){setState((){drawingPoints.add(null!);});}