width method

Widget width([
  1. double value = double.infinity
])

Wraps the widget in a SizedBox to set its width.

Implementation

Widget width([double value = double.infinity]) =>
    SizedBox(width: value, child: this);