scale method
Scales all points in the list by a factor.
factor
: The factor by which to scale the points.
Implementation
void scale(double factor) {
forEach((point) {
point.x = (point.x * factor).toInt();
point.y = (point.y * factor).toInt();
});
}