SfTooltip constructor
SfTooltip({
- TextStyle textStyle = const TextStyle(),
- int animationDuration = 500,
- Interval animationCurve = const Interval(0.0, 1.0, curve: Curves.linear),
- bool enable = true,
- double opacity = 1,
- Color borderColor = Colors.black,
- double borderWidth = 0,
- int duration = 3000,
- bool shouldAlwaysShow = false,
- double elevation = 0,
- bool canShowMarker = true,
- dynamic textAlignment = TooltipAlignment.near,
- int decimalPlaces = 2,
- Color color = Colors.black,
- Color labelColor = Colors.white,
- String? header,
- String? format,
- Color? shadowColor,
- Key? key,
- void onTooltipRender(
- TooltipRenderArgs tooltipRenderArgs
Creating an argument constructor of SfTooltip class.
Implementation
// ignore: prefer_const_constructors_in_immutables
SfTooltip(
{this.textStyle = const TextStyle(),
this.animationDuration = 500,
this.animationCurve = const Interval(0.0, 1.0, curve: Curves.linear),
this.enable = true,
this.opacity = 1,
this.borderColor = Colors.black,
this.borderWidth = 0,
this.duration = 3000,
this.shouldAlwaysShow = false,
this.elevation = 0,
this.canShowMarker = true,
this.textAlignment = TooltipAlignment.near,
this.decimalPlaces = 2,
this.color = Colors.black,
this.labelColor = Colors.white,
this.header,
this.format,
this.shadowColor,
Key? key,
this.onTooltipRender})
: super(key: key);