HitTestResult class

The result of performing a hit test.

Implementers

Constructors

HitTestResult()
Creates an empty hit test result.
HitTestResult.wrap(HitTestResult result)
Wraps result (usually a subtype of HitTestResult) to create a generic HitTestResult.

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 setter
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.
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.
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.
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.
toString() String
A string representation of this object.
override

Operators

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