TooltipRenderObject constructor

TooltipRenderObject({
  1. Key? key,
  2. Widget? template,
  3. required SfTooltipState tooltipState,
  4. required Animation<double> tooltipAnimation,
  5. required AnimationController animationController,
})

Creating an argument constructor of TooltipRenderObject class.

Implementation

// ignore: prefer_const_constructors_in_immutables
TooltipRenderObject(
    {super.key,
    Widget? template,
    required SfTooltipState tooltipState,
    required Animation<double> tooltipAnimation,
    required AnimationController animationController})
    : _tooltipState = tooltipState,
      _tooltipAnimation = tooltipAnimation,
      _animationController = animationController,
      super(child: template);