move method

Widget move({
  1. double x = 0,
  2. double y = 0,
})

平移控件位置

x 水平偏移量(正数向右) y 垂直偏移量(正数向下)

返回应用了平移变换的Widget

Implementation

Widget move({double x = 0, double y = 0}) {
  return Transform.translate(
    offset: Offset(x, y),
    child: this,
  );
}