flexibleEvery method

List<Widget> flexibleEvery()

Wraps each widget inside a Flexible widget.

This allows each widget to take up flexible space but does not force them to occupy equal amounts.

Example:

Row(children: [Text("X"), Text("Y"), Text("Z")].flexibleEvery())

Implementation

List<Widget> flexibleEvery() =>
    map((Widget e) => Flexible(child: e)).toList();