translateXY method

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

Translates the widget by the specified x and y values

Implementation

Widget translateXY(double x, double y) =>
    Transform.translate(offset: Offset(x, y), child: this);