move method

void move(
  1. Offset offset
)

Translates the component by offset value.

Implementation

void move(Offset offset) {
  position += offset;
  notifyListeners();
}