ChartInteractionConstants class
Constants for chart interaction behavior.
These constants define the interaction zones and timing for various chart interactions. Adjust these values to fine-tune the user experience.
Example
// Use custom tap radius
final result = ChartInteractionHelper.findNearestPoint(
tapPosition,
dataSets,
chartSize,
minX, maxX, minY, maxY,
ChartInteractionConstants.tapRadius * 1.5, // 50% larger
);
Constructors
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
Constants
- hoverRadius → const double
- Hover radius for detecting point hovers (larger than tap for better UX).
- longPressDuration → const int
- Long press duration threshold (in milliseconds).
- tapRadius → const double
- Standard tap radius for detecting point taps (in pixels).