Gap.expand constructor

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

Creates a widget that takes a fixed mainAxisExtent of space in the direction of its ancestors 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,
  Axis? fallbackDirection,
  Color? color,
  double? thickness,
  double? indent,
  double? endIndent,
}) : this(
        mainAxisExtent,
        key: key,
        fallbackDirection: fallbackDirection,
        crossAxisExtent: double.infinity,
        color: color,
        thickness: thickness,
        indent: indent,
        endIndent: endIndent,
      );