SliverHitTestResult class Null safety
The result of performing a hit test on RenderSlivers.
An instance of this class is provided to RenderSliver.hitTest to record the result of the hit test.
- Inheritance
-
- Object
- HitTestResult
- SliverHitTestResult
Constructors
- SliverHitTestResult()
- Creates an empty hit test result for hit testing on RenderSliver.
- SliverHitTestResult.wrap(HitTestResult result)
-
Wraps
result
to create a HitTestResult that implements the SliverHitTestResult protocol for hit testing on RenderSlivers.
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
path
→ Iterable<
HitTestEntry< HitTestTarget> > -
An unmodifiable list of
HitTestEntry
objects recorded during the hit test.read-onlyinherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
add(
HitTestEntry< HitTestTarget> entry) → void -
Add a HitTestEntry to the path.
inherited
-
addWithAxisOffset(
{required Offset? paintOffset, required double mainAxisOffset, required double crossAxisOffset, required double mainAxisPosition, required double crossAxisPosition, required SliverHitTest hitTest}) → bool -
Transforms
mainAxisPosition
andcrossAxisPosition
to the local coordinate system of a child for hit-testing the child. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
popTransform(
) → void -
Removes the last transform added via pushTransform or pushOffset.
protected">@protectedinherited
-
pushOffset(
Offset offset) → void -
Pushes a new translation offset that is to be applied to all future
HitTestEntrys added via add until it is removed via popTransform.
protected">@protectedinherited
-
pushTransform(
Matrix4 transform) → void -
Pushes a new transform matrix that is to be applied to all future
HitTestEntrys added via add until it is removed via popTransform.
protected">@protectedinherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited