SliverCrossAxisExpanded constructor

const SliverCrossAxisExpanded(
  1. {Key? key,
  2. required int flex,
  3. required Widget sliver}
)

Creates an object that assigns a flex value to the child sliver.

The provided flex value must be greater than 0.

Implementation

const SliverCrossAxisExpanded({
  super.key,
  required this.flex,
  required Widget sliver,
}): assert(flex > 0 && flex < double.infinity),
    super(child: sliver);