TrackballBehavior class

Customizes the trackball.

Inheritance

Constructors

TrackballBehavior({ActivationMode activationMode, TrackballLineType lineType, TrackballDisplayMode tooltipDisplayMode, ChartAlignment tooltipAlignment, InteractiveTooltip tooltipSettings, List<double> lineDashArray, bool enable: false, Color lineColor, double lineWidth: 1, bool shouldAlwaysShow: false })

Properties

activationMode ActivationMode
Gesture for activating the trackball. Trackball can be activated in tap, double tap, and long press. [...]
final
enable bool
Toggles the visibility of the trackball. [...]
final
lineColor Color
Color of the track line. [...]
final
lineDashArray List<double>
Dashes of the track line. [...]
final
lineType TrackballLineType
Type of trackball line. By default, vertical line will be displayed. You can change this by specifying values to this property. [...]
final
lineWidth double
Width of the track line. [...]
final
shouldAlwaysShow bool
Shows or hides the trackball. By default, the trackball will be hidden on touch. To avoid this, set this property to true. [...]
final
tooltipAlignment ChartAlignment
Alignment of the trackball tooltip. The trackball tooltip can be aligned at the top, bottom, and center position of the chart. [...]
final
tooltipDisplayMode TrackballDisplayMode
Display mode of tooltip. By default, tooltip of all the series under the current point index value will be shown. [...]
final
tooltipSettings InteractiveTooltip
Customizes the trackball tooltip. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

hide() → void
Hides the trackball if it is displayed.
onDoubleTap(double xPos, double yPos) → void
Performs the double-tap action.
override
onLongPress(double xPos, double yPos) → void
Performs the long press action.
override
onPaint(Canvas canvas) → void
Draws trackball
override
onTouchDown(double xPos, double yPos) → void
Performs the touch-down action.
override
onTouchMove(double xPos, double yPos) → void
Performs the touch-move action.
override
onTouchUp(double xPos, double yPos) → void
Performs the touch-up action.
override
show(double x, double y) → void
Displays the trackball at the specified x and y-positions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited