width property

double get width

Width of the Component.

Implementation

double get width => this.position.width;
set width (double newWidth)

set Height of the Component.

Implementation

set width(double newWidth) {
  this.position = this.position.copyWith(size: Vector2(newWidth, height));
}