constrainWidth method

double constrainWidth([
  1. double width = double.infinity
])

Implementation

double constrainWidth([double width = double.infinity]) {
  return width.clamp(minWidth, maxWidth);
}