constrained method

ConstrainedBox constrained({
  1. Key? key,
  2. double minW = 0.0,
  3. double maxW = double.infinity,
  4. double minH = 0.0,
  5. double maxH = double.infinity,
})

Implementation

ConstrainedBox constrained({
  Key? key,
  double minW = 0.0,
  double maxW = double.infinity,
  double minH = 0.0,
  double maxH = double.infinity,
}) =>
    ConstrainedBox(
      key: key,
      constraints: BoxConstraints(
        minWidth: minW,
        maxWidth: maxW,
        minHeight: minH,
        maxHeight: maxH,
      ),
      child: this,
    );