Gap constructor

const Gap(
  1. double mainAxisExtent, {
  2. Key? key,
  3. Axis? fallbackDirection,
  4. double? crossAxisExtent,
  5. Color? color,
  6. double? thickness,
  7. double? indent,
  8. double? endIndent,
})

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);