addHit method

  1. @override
void addHit()
override

Adds the boxy to hitTestResult, this should typically be called from hitTest when a hit succeeds.

Implementation

@override
void addHit() {
  hitTestResult.add(
    SliverHitTestEntry(
      render,
      crossAxisPosition: render.hitPosition!.cross,
      mainAxisPosition: render.hitPosition!.main,
    ),
  );
}