height property

int get height

Implementation

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