BoxHitTestResult class

The result of performing a hit test on RenderBoxes.

An instance of this class is provided to RenderBox.hitTest to record the result of the hit test.

Inheritance

Constructors

BoxHitTestResult()
Creates an empty hit test result for hit testing on RenderBox.
BoxHitTestResult.wrap(HitTestResult result)
Wraps result to create a HitTestResult that implements the BoxHitTestResult protocol for hit testing on RenderBoxes.

Properties

hashCode int
The hash code for this object.
no setterinherited
path Iterable<HitTestEntry<HitTestTarget>>
An unmodifiable list of HitTestEntry objects recorded during the hit test.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(HitTestEntry<HitTestTarget> entry) → void
Add a HitTestEntry to the path.
inherited
addWithOutOfBandPosition({Offset? paintOffset, Matrix4? paintTransform, Matrix4? rawTransform, required BoxHitTestWithOutOfBandPosition hitTest}) bool
Pass-through method for adding a hit test while manually managing the position transformation logic.
addWithPaintOffset({required Offset? offset, required Offset position, required BoxHitTest hitTest}) bool
Convenience method for hit testing children, that are translated by an Offset.
addWithPaintTransform({required Matrix4? transform, required Offset position, required BoxHitTest hitTest}) bool
Transforms position to the local coordinate system of a child for hit-testing the child.
addWithRawTransform({required Matrix4? transform, required Offset position, required BoxHitTest hitTest}) bool
Transforms position to the local coordinate system of a child for hit-testing the child.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
popTransform() → void
Removes the last transform added via pushTransform or pushOffset.
inherited
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.
inherited
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.
inherited
toString() String
A string representation of this object.
inherited

Operators

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