width property

double width
inherited

The width of the component in local coordinates. Note that the object may visually appear larger or smaller due to application of scale.

Implementation

double get width => _size.x;
  1. @override
void width=(double w)

This property cannot be reassigned at runtime. To make the PositionComponent larger or smaller, change its scale.

Implementation

@override
set width(double w) {
  // Intentionally left empty.
}