TooltipBehavior constructor

TooltipBehavior({
  1. bool enable = false,
  2. TextStyle? textStyle,
  3. ActivationMode activationMode = ActivationMode.singleTap,
  4. int animationDuration = 350,
  5. double opacity = 1.0,
  6. Color borderColor = Colors.transparent,
  7. double borderWidth = 1,
  8. double duration = 3000,
  9. bool shouldAlwaysShow = false,
  10. double elevation = 2.5,
  11. bool canShowMarker = true,
  12. ChartAlignment textAlignment = ChartAlignment.center,
  13. int decimalPlaces = 3,
  14. TooltipPosition tooltipPosition = TooltipPosition.auto,
  15. bool shared = false,
  16. Color? color,
  17. String? header,
  18. String? format,
  19. ChartWidgetBuilder? builder,
  20. Color? shadowColor,
})

Creating an argument constructor of TooltipBehavior class.

Implementation

TooltipBehavior({
  this.enable = false,
  this.textStyle,
  this.activationMode = ActivationMode.singleTap,
  this.animationDuration = 350,
  this.opacity = 1.0,
  this.borderColor = Colors.transparent,
  this.borderWidth = 1,
  this.duration = 3000,
  this.shouldAlwaysShow = false,
  this.elevation = 2.5,
  this.canShowMarker = true,
  this.textAlignment = ChartAlignment.center,
  this.decimalPlaces = 3,
  this.tooltipPosition = TooltipPosition.auto,
  this.shared = false,
  this.color,
  this.header,
  this.format,
  this.builder,
  this.shadowColor,
});