PrototypeConstrainedBox.tightFor constructor

const PrototypeConstrainedBox.tightFor(
  1. {Key? key,
  2. bool width = false,
  3. bool height = false,
  4. required Widget prototype,
  5. required Widget? child}
)

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

Implementation

const PrototypeConstrainedBox.tightFor({
  super.key,
  bool width = false,
  bool height = false,
  required this.prototype,
  required this.child,
})  : constrainMinWidth = width,
      constrainMaxWidth = width,
      constrainMinHeight = height,
      constrainMaxHeight = height;