scaleXY method

Widget scaleXY(
  1. double x,
  2. double y
)

Scales the widget by the specified x and y factors

Implementation

Widget scaleXY(double x, double y) => Transform(
  transform: Matrix4.diagonal3Values(x, y, 1.0),
  alignment: Alignment.center,
  child: this,
);