BoxHitTestEntry constructor Null safety

BoxHitTestEntry(
  1. RenderBox target,
  2. Offset localPosition
)

Creates a box hit test entry.

The localPosition argument must not be null.

Implementation

BoxHitTestEntry(super.target, this.localPosition)
  : assert(localPosition != null);