PrototypeConstrainedBox.tight constructor

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

Constrains the given child to have the exact same size as prototype.

Implementation

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