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.

Inheritance

Constructors

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

Properties

crossAxisPosition double
The distance to the hit point in the axis opposite the SliverConstraints.axis.
final
hashCode int
The hash code for this object.
read-onlyinherited
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.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
target RenderSliver
The HitTestTarget encountered during the hit test.
finalinherited
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-onlyinherited

Methods

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

Operators

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