hitTest method Null safety

  1. @override
void hitTest(
  1. HitTestResult result,
  2. Offset position
)
override

Determine which HitTestTarget objects are located at a given position.

Implementation

@override
void hitTest(HitTestResult result, Offset position) {
  assert(renderView != null);
  assert(result != null);
  assert(position != null);
  renderView.hitTest(result, position: position);
  super.hitTest(result, position);
}