DimensionSizedBox constructor

const DimensionSizedBox({
  1. Key? key,
  2. AlignmentGeometry alignment = Alignment.center,
  3. Dimension? width,
  4. Dimension? height,
  5. Widget? child,
})

Creates a widget that sizes its child to a fraction of the total available space.

If non-null, the widthFactor and heightFactor arguments must be non-negative.

Implementation

const DimensionSizedBox({
  Key? key,
  this.alignment = Alignment.center,
  this.width,
  this.height,
  Widget? child,
}) : super(key: key, child: child);