TooltipBehavior constructor
TooltipBehavior({
- TextStyle? textStyle,
- ActivationMode? activationMode,
- int? animationDuration,
- bool? enable,
- double? opacity,
- Color? borderColor,
- double? borderWidth,
- double? duration,
- bool? shouldAlwaysShow,
- double? elevation,
- bool? canShowMarker,
- ChartAlignment? textAlignment,
- int? decimalPlaces,
- TooltipPosition? tooltipPosition,
- Color? color,
- String? header,
- String? format,
- ChartWidgetBuilder? builder,
- Color? shadowColor,
Creating an argument constructor of TooltipBehavior class.
Implementation
TooltipBehavior(
{this.textStyle,
ActivationMode? activationMode,
int? animationDuration,
bool? enable,
double? opacity,
Color? borderColor,
double? borderWidth,
double? duration,
bool? shouldAlwaysShow,
double? elevation,
bool? canShowMarker,
ChartAlignment? textAlignment,
int? decimalPlaces,
TooltipPosition? tooltipPosition,
bool? shared,
this.color,
this.header,
this.format,
this.builder,
this.shadowColor})
: animationDuration = animationDuration ?? 350,
textAlignment = textAlignment ?? ChartAlignment.center,
activationMode = activationMode ?? ActivationMode.singleTap,
borderColor = borderColor ?? Colors.transparent,
borderWidth = borderWidth ?? 0,
duration = duration ?? 3000,
enable = enable ?? false,
opacity = opacity ?? 1,
shouldAlwaysShow = shouldAlwaysShow ?? false,
canShowMarker = canShowMarker ?? true,
tooltipPosition = tooltipPosition ?? TooltipPosition.auto,
elevation = elevation ?? 2.5,
decimalPlaces = decimalPlaces ?? 3,
shared = shared ?? false;