flipVerticallyAroundCenter method
void
flipVerticallyAroundCenter()
Flip the component vertically around its center line.
Implementation
void flipVerticallyAroundCenter() {
if (anchor.y != 0.5) {
final delta = (1 - 2 * _anchor.y) * height * transform.scale.y;
transform.x += -delta * math.sin(transform.angle);
transform.y += delta * math.cos(transform.angle);
}
transform.flipVertically();
}