TrackballBehavior constructor
TrackballBehavior({
- ActivationMode activationMode = ActivationMode.longPress,
- TrackballLineType lineType = TrackballLineType.vertical,
- TrackballDisplayMode tooltipDisplayMode = TrackballDisplayMode.floatAllPoints,
- ChartAlignment tooltipAlignment = ChartAlignment.center,
- InteractiveTooltip tooltipSettings = const InteractiveTooltip(),
- TrackballMarkerSettings? markerSettings,
- List<
double> ? lineDashArray, - bool enable = false,
- Color? lineColor,
- double lineWidth = 1,
- bool shouldAlwaysShow = false,
- ChartTrackballBuilder? builder,
- double hideDelay = 0,
Creating an argument constructor of TrackballBehavior class.
Implementation
TrackballBehavior({
this.activationMode = ActivationMode.longPress,
this.lineType = TrackballLineType.vertical,
this.tooltipDisplayMode = TrackballDisplayMode.floatAllPoints,
this.tooltipAlignment = ChartAlignment.center,
this.tooltipSettings = const InteractiveTooltip(),
this.markerSettings,
this.lineDashArray,
this.enable = false,
this.lineColor,
this.lineWidth = 1,
this.shouldAlwaysShow = false,
this.builder,
this.hideDelay = 0,
}) {
_fetchImage();
}