Space constructor

const Space({
  1. Key? key,
  2. required double mainAxisExtent,
  3. double? crossAxisExtent,
  4. Color? color,
})

Creates a widget that takes a fixed mainAxisExtent of space in the direction of its parent.

The mainAxisExtent must not be null and must be positive. The crossAxisExtent must be either null or positive.

Implementation

const Space({
  Key? key,
  required double mainAxisExtent,
  this.crossAxisExtent,
  this.color,
})  : mainAxisExtent = mainAxisExtent,
      size = null,
      assert(mainAxisExtent > 0),
      super(key: key);