ConstraintsX extension

Useful extensions on BoxConstraints.

on

Methods

tightenMaxSize(Size? size) BoxConstraints
Returns new box constraints that tightens the max width and max height to the given size.