update method

dynamic update()

Implementation

update() {
  setPosition(position["x"], position["y"]);
  setSize(size["width"], size["height"]);
}