SliverOffstageModifier constructor

const SliverOffstageModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. bool offstage = true,
})

Creates a sliver that visually hides its sliver child.

Implementation

const SliverOffstageModifier({
  super.key,
  super.modifierKey,
  super.child,
  this.offstage = true,
}) : assert(offstage != null);