isEmpty property

bool get isEmpty

Whether the rectangle has no area.

Implementation

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