translate method

Widget translate({
  1. Key? key,
  2. required Offset offset,
  3. bool transformHitTests = true,
})

Translate 变化位置

Implementation

Widget translate({
  Key? key,
  required Offset offset,
  bool transformHitTests = true,
}) =>
    Transform.translate(
      key: key,
      offset: offset,
      transformHitTests: transformHitTests,
      child: this,
    );