double width

The distance between the left and right edges of this rectangle.

Source

double get width => right - left;