scale method
Add an axis-aligned scale to the current transform, scaling by the first argument in the horizontal direction and the second in the vertical direction.
If sy
is unspecified, sx
will be used for the scale in both
directions.
Implementation
void scale(double sx, [double sy]) => _scale(sx, sy ?? sx);