sizedBox method

SizedBox sizedBox({
  1. double? h,
  2. double? w,
})

Wraps the current widget in a SizedBox with specified dimensions.

h sets the height of the SizedBox. w sets the width of the SizedBox.

Returns a SizedBox widget with the current widget as its child.

Implementation

SizedBox sizedBox({double? h, double? w}) =>
    SizedBox(height: h, width: w, child: this);