List<Object?> writePoints(List<Vec?> points) => [for (final p in points) p == null ? null : writeVec(p)];