MaxGap constructor

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

Creates a widget that takes, at most, the specified mainAxisExtent of space in a Row, Column, or Flex widget.

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

Implementation

const MaxGap(
  this.mainAxisExtent, {
  Key? key,
  this.crossAxisExtent,
  this.color,
}) : super(key: key);