setTranslation method

void setTranslation(
  1. double x,
  2. double y
)

Implementation

void setTranslation(double x, double y) {
  if (x == _translationX && y == _translationY) {
    return;
  }
  _translationX = x;
  _translationY = y;
  requestLayout();
}