TooltipBehavior constructor
TooltipBehavior({
- bool enable = false,
- TextStyle? textStyle,
- ActivationMode activationMode = ActivationMode.singleTap,
- int animationDuration = 350,
- double opacity = 1.0,
- Color borderColor = Colors.transparent,
- double borderWidth = 1,
- double duration = 3000,
- bool shouldAlwaysShow = false,
- double elevation = 2.5,
- bool canShowMarker = true,
- ChartAlignment textAlignment = ChartAlignment.center,
- int decimalPlaces = 3,
- TooltipPosition tooltipPosition = TooltipPosition.auto,
- Color? color,
- String? header,
- String? format,
- ChartWidgetBuilder? builder,
- 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,
});