discontinuedPackage vector_graphics_compiler_plus has been discontinued and replaced by vector_graphics_compiler.

isEmpty property

bool get isEmpty

Whether or not the rect has any contents.

Implementation

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