Pure hit-testing over a ChartScene. No Flutter painting — every function here is a deterministic query so the interaction layer (and tests) can reason about gestures without a canvas.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
markAt(
ChartScene scene, Offset point, {double radius = tapRadius}) → PlotMark? -
The mark a tap at
pointselects: first any mark whose PlotMark.region contains the point (bars), else the nearest PlotMark.center withinradius. Returnsnullwhen nothing is close enough. -
marksAtIndex(
ChartScene scene, int index) → List< PlotMark> -
Every mark sharing column
index(all series stacked at one x). -
nearestIndexAtX(
ChartScene scene, double px) → int? -
The column index nearest pixel x
px— the trackball column. Uses the scene's ChartScene.scale when present, else the nearest mark by center x. -
rangeBetween(
ChartScene scene, double startX, double endX) → ChartRange? -
The inclusive column range spanned by a drag from pixel x
startXtoendX, with every mark inside it. Returnsnullfor an empty scene.
Constants
- tapRadius → const double
- The default tap radius (logical px) within which a point-like mark counts as hit when no PlotMark.region contains the pointer.