SliverSpace constructor

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

Creates a sliver that takes a fixed mainAxisExtent of space.

The mainAxisExtent must not be null and must be positive.

Implementation

const SliverSpace(
  this.mainAxisExtent, {
  super.key,
  this.color,
}) : assert(mainAxisExtent >= 0 && mainAxisExtent < double.infinity);