withWidth method

Widget withWidth(
  1. double? width
)

Set the width of this widget set to width by wrapping it inside a SizedBox

Implementation

Widget withWidth(double? width) {
  return SizedBox(width: width, child: this);
}