hasInfiniteWidth property Null safety
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.
bool get hasInfiniteWidth => minWidth >= double.infinity;