SliverIgnorePointer constructor Null safety

const SliverIgnorePointer(
  1. {Key? key,
  2. bool ignoring = true,
  3. bool? ignoringSemantics,
  4. Widget? sliver}
)

Creates a sliver widget that is invisible to hit testing.

The ignoring argument must not be null. If ignoringSemantics is null, this render object will be ignored for semantics if ignoring is true.

Implementation

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