MaxGap.expand constructor

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

Creates a widget that takes, at most, the specified mainAxisExtent of space in a Row, Column, or Flex widget and expands in the cross axis direction.

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

Implementation

const MaxGap.expand(
  double mainAxisExtent, {
  Key? key,
  Color? color,
}) : this(
        mainAxisExtent,
        key: key,
        crossAxisExtent: double.infinity,
        color: color,
      );