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.
- Inheritance
- Object
- HitTestEntry
- SliverHitTestEntry
Constructors
- SliverHitTestEntry(RenderSliver target, { @required double mainAxisPosition, @required double crossAxisPosition })
-
Creates a sliver hit test entry. [...]
const
Properties
- crossAxisPosition → double
-
The distance to the hit point in the axis opposite the
SliverConstraints.axis. [...]
final
- 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
- 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
Methods
-
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited