Offstage constructor Null safety

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

Creates a widget that visually hides its child.

Implementation

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