SliverHitTestEntry class

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. [...]
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.
target RenderSliver
The HitTestTarget encountered during the hit test.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, 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


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


operator ==(dynamic other) bool
The equality operator. [...]