isEmpty property

bool get isEmpty

Whether or not the rect has any contents.

Implementation

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