width property

int get width

Get the width of this region

Implementation

int get width => max(x2 - x1, 0);