update method

dynamic update()

Implementation

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