SliverHitTest typedef Null safety

bool SliverHitTest(
  1. SliverHitTestResult result,
  2. {required double mainAxisPosition,
  3. required double crossAxisPosition}
)

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 });