SliverHitTestEntry constructor Null safety
- RenderSliver target,
- {required double mainAxisPosition,
- 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);