width method

Modifier width(
  1. double width
)

Wrap the widget into an SizedBox Widget

Apply the width to the Container If your purpose is the height of also then recommended to use Modifier.widthHeight

Implementation

Modifier width(double width) {
  return Modifier._([
    ..._modifiers,
    (widget) {
      return SizedBox(
        width: width,
        child: widget,
      );
    }
  ]);
}