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({
  Key? key,
  this.offstage = true,
  Widget? sliver,
}) : assert(offstage != null),
     super(key: key, child: sliver);