Space.expand constructor

const Space.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 Space.expand(
  double mainAxisExtent, {
  Key? key,
  Color? color,
}) : this(
        mainAxisExtent,
        key: key,
        crossAxisExtent: double.infinity,
        color: color,
      );