PrototypeConstrainedBox.loose constructor

const PrototypeConstrainedBox.loose(
  1. {Key? key,
  2. required Widget prototype,
  3. required Widget? child}
)

Constrains the given child to forbid it to be larger than prototype.

Implementation

const PrototypeConstrainedBox.loose({
  super.key,
  required this.prototype,
  required this.child,
})  : constrainMinWidth = false,
      constrainMaxWidth = true,
      constrainMinHeight = false,
      constrainMaxHeight = true;