SliverHitTestEntry class Null safety

A hit test entry used by RenderSliver.

The coordinate system used by this hit test entry is relative to the AxisDirection of the target sliver.



SliverHitTestEntry(RenderSliver target, {required double mainAxisPosition, required double crossAxisPosition})
Creates a sliver hit test entry.


crossAxisPosition double
The distance to the hit point in the axis opposite the SliverConstraints.axis.
hashCode int
The hash code for this object.
read-only, inherited
mainAxisPosition double
The distance in the AxisDirection from the edge of the sliver's painted area (as given by the SliverConstraints.scrollOffset) to the hit point. This can be an unusual direction, for example in the AxisDirection.up case this is a distance from the bottom of the sliver's painted area.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
target RenderSliver
The HitTestTarget encountered during the hit test.
final, inherited
transform Matrix4?
Returns a matrix describing how PointerEvents delivered to this HitTestEntry should be transformed from the global coordinate space of the screen to the local coordinate space of target.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.