TrackballBehavior constructor

TrackballBehavior({
  1. ActivationMode activationMode = ActivationMode.longPress,
  2. TrackballLineType lineType = TrackballLineType.vertical,
  3. TrackballDisplayMode tooltipDisplayMode = TrackballDisplayMode.floatAllPoints,
  4. ChartAlignment tooltipAlignment = ChartAlignment.center,
  5. InteractiveTooltip tooltipSettings = const InteractiveTooltip(),
  6. TrackballMarkerSettings? markerSettings,
  7. List<double>? lineDashArray,
  8. bool enable = false,
  9. Color? lineColor,
  10. double lineWidth = 1,
  11. bool shouldAlwaysShow = false,
  12. ChartTrackballBuilder? builder,
  13. 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();
}