drawRawPoints method
Draws a sequence of points according to the given PointMode.
The points
argument is interpreted as a list of pairs of floating point
numbers, where each pair represents an x and y offset from the origin.
See also:
- drawPoints, which takes
points
as a List<Offset> rather than a List<Float32List>.
Implementation
void drawRawPoints(PointMode pointMode, Float32List points, Paint paint) {
assert(pointMode != null);
assert(points != null);
assert(paint != null);
if (points.length % 2 != 0)
throw ArgumentError('"points" must have an even number of values.');
_drawPoints(paint._objects, paint._data, pointMode.index, points);
}