width method

Widget width(
  1. double width
)

Constrains the widget to the given width.

Implementation

Widget width(double width) => SizedBox(width: width, child: this);