tightConstraintsFor method

BoxConstraints tightConstraintsFor(
  1. Axis direction
)

Implementation

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