ChartHitQuery class

A request to find the data under (or near) a position.

Annotations

Constructors

ChartHitQuery({required Offset position, required ChartView view, ChartHitMode mode = ChartHitMode.nearestX, double maxDistance = double.infinity})
Creates a query.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxDistance → double
Candidates further than this many logical pixels are ignored.
final
mode → ChartHitMode
How candidates are ranked.
final
position → Offset
The plot-local position being queried.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
view → ChartView
The view to resolve data positions with.
final

Methods

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

Operators

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