SliverGap constructor

const SliverGap(
  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 SliverGap(
  this.mainAxisExtent, {
  Key? key,
  this.color,
})  : assert(mainAxisExtent >= 0 && mainAxisExtent < double.infinity),
      super(key: key);