SliverOffstage constructor Null safety

const SliverOffstage(
  1. {Key? key,
  2. bool offstage = true,
  3. Widget? sliver}
)

Creates a sliver that visually hides its sliver child.

Implementation

const SliverOffstage({
  super.key,
  this.offstage = true,
  Widget? sliver,
}) : assert(offstage != null),
     super(child: sliver);