drawPoints method
override
Draws a sequence of points according to the given PointMode.
The points argument is interpreted as offsets from the origin.
The paint is used for each point (PointMode.points) or line
(PointMode.lines or PointMode.polygon), ignoring Paint.style.
See also:
- drawRawPoints, which takes
pointsas a Float32List rather than a List<Offset>.
Implementation
@override
void drawPoints(PointMode pointMode, List<Offset> points, Paint paint) {
invocations.add(
RecordedInvocation(
_MethodCall(#drawPoints, <dynamic>[pointMode, points, Paint.from(paint)]),
stack: StackTrace.current,
),
);
}