SliverHitTest typedef

SliverHitTest = bool Function(SliverHitTestResult result, {required double crossAxisPosition, required double mainAxisPosition})

Method signature for hit testing a RenderSliver.

Used by SliverHitTestResult.addWithAxisOffset to hit test RenderSliver children.

See also:

Implementation

typedef SliverHitTest =
    bool Function(
      SliverHitTestResult result, {
      required double mainAxisPosition,
      required double crossAxisPosition,
    });