height property

int get height

Get the height of this region

Implementation

int get height => max(y2 - y1, 0);