isEmpty property

bool get isEmpty

Whether this rectangle has no area.

Implementation

bool get isEmpty => width <= 0 || height <= 0;