tightConstraintsFor method
Implementation
BoxConstraints tightConstraintsFor(Axis direction) {
return direction == Axis.horizontal ?
BoxConstraints.tightFor(width: main, height: cross) :
BoxConstraints.tightFor(width: cross, height: main);
}