RenderSliverOffstage constructor Null safety

RenderSliverOffstage(
  1. {bool offstage = true,
  2. RenderSliver? sliver}
)

Creates an offstage render object.

Implementation

RenderSliverOffstage({
  bool offstage = true,
  RenderSliver? sliver,
}) : assert(offstage != null),
     _offstage = offstage {
  child = sliver;
}