RenderSliverIgnorePointer constructor Null safety

RenderSliverIgnorePointer(
  1. {RenderSliver? sliver,
  2. bool ignoring = true,
  3. bool? ignoringSemantics}
)

Creates a render object 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

RenderSliverIgnorePointer({
  RenderSliver? sliver,
  bool ignoring = true,
  bool? ignoringSemantics,
}) : assert(ignoring != null),
     _ignoring = ignoring,
     _ignoringSemantics = ignoringSemantics {
  child = sliver;
}