translate method

Widget translate({
  1. double dx = 0,
  2. double dy = 0,
})

Translates the widget by dx and dy.

Implementation

Widget translate({double dx = 0, double dy = 0}) =>
    Transform.translate(offset: Offset(dx, dy), child: this);