paint method

  1. @override
void paint(
  1. PaintingContext context,
  2. Offset thumbCenter,
  3. Offset offset,
  4. TextPainter textPainter, {
  5. required RenderBox parentBox,
  6. required SfSliderThemeData sliderThemeData,
  7. required Paint paint,
  8. required Animation<double> animation,
  9. required Rect trackRect,
})
override

Draws the tooltip based on the values passed in the arguments.

Implementation

@override
void paint(PaintingContext context, Offset thumbCenter, Offset offset,
    TextPainter textPainter,
    {required RenderBox parentBox,
    required SfSliderThemeData sliderThemeData,
    required Paint paint,
    required Animation<double> animation,
    required Rect trackRect}) {
  _drawPaddleTooltip(
      parentBox,
      textPainter,
      minPaddleTopCircleRadius,
      neckDifference,
      sliderThemeData,
      defaultThumbRadius,
      minBottomNeckRadius,
      textPadding,
      offset,
      moveNeckValue,
      thumbCenter,
      trackRect,
      context,
      animation,
      paint);
}