shiftCoordinates method

void shiftCoordinates(
  1. double shiftX,
  2. double shiftY
)

Implementation

void shiftCoordinates(double shiftX, double shiftY) {
  layers.forEach((List<Node?> arrayList) {
    arrayList.forEach((it) {
      it!.position = Offset(it.x + shiftX, it.y + shiftY);
    });
  });
}