Gap constructor
const
Gap(})
Creates a widget that takes a fixed mainAxisExtent of space in the direction of its ancestors.
The mainAxisExtent must not be null and must be positive. The crossAxisExtent must be either null or positive.
Implementation
const Gap(
this.mainAxisExtent, {
Key? key,
this.fallbackDirection,
this.crossAxisExtent,
this.color,
this.thickness,
this.indent,
this.endIndent,
}) : assert(mainAxisExtent >= 0),
assert(crossAxisExtent == null || crossAxisExtent >= 0),
assert(thickness == null || thickness >= 0.0),
assert(indent == null || indent >= 0.0),
assert(endIndent == null || endIndent >= 0.0),
super(key: key);