fillMaxWidth method

Modifier fillMaxWidth()

Wrap the widget into an SizedBox Widget

force the the SizedBox to fillMaxWidth

Implementation

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