SfTooltip constructor

SfTooltip({
  1. TextStyle textStyle = const TextStyle(),
  2. int animationDuration = 500,
  3. Interval animationCurve = const Interval(0.0, 1.0, curve: Curves.linear),
  4. bool enable = true,
  5. double opacity = 1,
  6. Color borderColor = Colors.black,
  7. double borderWidth = 0,
  8. int duration = 3000,
  9. bool shouldAlwaysShow = false,
  10. double elevation = 0,
  11. bool canShowMarker = true,
  12. dynamic textAlignment = TooltipAlignment.near,
  13. int decimalPlaces = 2,
  14. Color color = Colors.black,
  15. Color labelColor = Colors.white,
  16. String? header,
  17. String? format,
  18. Color? shadowColor,
  19. Key? key,
  20. void onTooltipRender(
    1. 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);