drawRawPoints method Null safety

void drawRawPoints(
  1. PointMode pointMode,
  2. Float32List points,
  3. Paint paint
)

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:

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);
}