SliverHitTestEntry constructor Null safety

SliverHitTestEntry(
  1. RenderSliver target,
  2. {required double mainAxisPosition,
  3. required double crossAxisPosition}
)

Creates a sliver hit test entry.

The mainAxisPosition and crossAxisPosition arguments must not be null.

Implementation

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