drawPoints method

void drawPoints (
  1. PointMode pointMode,
  2. List<Offset> points,
  3. Paint paint
)

Draws a sequence of points according to the given PointMode.

The points argument is interpreted as offsets from the origin.

See also:

Implementation

void drawPoints(PointMode pointMode, List<Offset> points, Paint paint) {
  assert(pointMode != null); // ignore: unnecessary_null_comparison
  assert(points != null); // ignore: unnecessary_null_comparison
  assert(paint != null); // ignore: unnecessary_null_comparison
  _drawPoints(paint._objects, paint._data, pointMode.index, _encodePointList(points));
}