setPosition method

void setPosition(
  1. Offset position
)

Sets the position of the component to position value.

Implementation

void setPosition(Offset position) {
  this.position = position;
  notifyListeners();
}