toPoints function Null safety

List<Offset> toPoints(
  1. List points
)

Implementation

List<Offset> toPoints(List points) {
  List<Offset> result = [];

  for (var point in points) {
    result.add(toPoint(point));
  }

  return result;
}