Spacer constructor Null safety
Creates a flexible space to insert into a Flexible widget.
The flex parameter may not be null or less than one.
Implementation
const Spacer({super.key, this.flex = 1})
: assert(flex != null),
assert(flex > 0);
Creates a flexible space to insert into a Flexible widget.
The flex parameter may not be null or less than one.
const Spacer({super.key, this.flex = 1})
: assert(flex != null),
assert(flex > 0);