hasInfiniteWidth property

bool hasInfiniteWidth

Whether the width constraint is infinite.

Such a constraint is used to indicate that a box should grow as large as some other constraint (in this case, horizontally). If constraints are infinite, then they must have other (non-infinite) constraints enforced upon them, or must be tightened, before they can be used to derive a Size for a RenderBox.size.

See also:


bool get hasInfiniteWidth => minWidth >= double.infinity;