SliverHitTestEntry constructor

const SliverHitTestEntry(RenderSliver target, { @required double mainAxisPosition, @required double crossAxisPosition })

Creates a sliver hit test entry.

The mainAxisPosition and crossAxisPosition arguments must not be null.

Implementation

const SliverHitTestEntry(RenderSliver target, {
  @required this.mainAxisPosition,
  @required this.crossAxisPosition,
}) : assert(mainAxisPosition != null),
     assert(crossAxisPosition != null),
     super(target);