Create a list in my code of offset but show me an error with the below code
final List<Offset> p = List<Offset>(6);
Error:
The default 'List' constructor isn't available when null safety is enabled. (Documentation)
Try using a list literal, 'List.filled' or 'List.generate'.
But I can't convert it into literal with the (6) value because I have no knowledge of this!