isValid property

bool get isValid

Whether the inner box of the text is smaller than the outer box.

Implementation

bool get isValid =>
    sizeInner.width <= sizeOuter.width &&
    sizeInner.height <= sizeOuter.height;