scaleY property
double
get
scaleY
Derived Y scale (convenience accessor).
This derives the sign from the matrix determinant and scaleX, so reflections may be represented as a 180° rotation + negative Y scale.
Implementation
double get scaleY {
final sx = scaleX;
if (sx == 0) return 0;
final det = transform.a * transform.d - transform.b * transform.c;
return det / sx;
}
set
scaleY
(double value)
Implementation
set scaleY(double value) {
transform = Transform2D.trs(
translation: position,
rotationDeg: rotationDeg,
scaleX: scaleX,
scaleY: value,
);
}