hitTestOnBinding method

HitTestResult hitTestOnBinding(
  1. Offset location,
  2. {int? viewId}
)

Forwards the given location to the binding's hitTest logic.

Implementation

HitTestResult hitTestOnBinding(Offset location, { int? viewId }) {
  viewId ??= view.viewId;
  final HitTestResult result = HitTestResult();
  binding.hitTestInView(result, location, viewId);
  return result;
}