Spacer constructor

const Spacer({Key key, int flex: 1 })

Creates a flexible space to insert into a Flexible widget.

The flex parameter may not be null or less than one.

Implementation

const Spacer({Key key, this.flex = 1})
    : assert(flex != null),
      assert(flex > 0),
      super(key: key);