Gap.expand constructor

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

Creates a widget that takes a fixed mainAxisExtent of space in the direction of its parent and expands in the cross axis direction.

The mainAxisExtent must not be null and must be positive.

Implementation

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