scale method

  1. @override
void scale(
  1. double sx, [
  2. double? sy
])
override

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

@override
void scale(double sx, [double? sy]) {
  sy ??= sx;
  _lastTransform.scale(sx, sy);
}