stretch method

Widget stretch([
  1. EdgeInsets? padding
])

Stretches this widget to fill the available horizontal space. Optionally, you can provide padding to the stretched widget.

This is equivalent to wrapping this widget with a Container with double.infinity as the width.

Implementation

Widget stretch([EdgeInsets? padding]) => Container(
      width: double.infinity,
      padding: padding,
      child: this,
    );