tooltipBackgroundColor property Null safety

Color? tooltipBackgroundColor
final

Specifies the color for the tooltip background in the SfSlider, SfRangeSlider, and SfRangeSelector.

This snippet shows how to set tooltip background color in SfRangeSliderThemeData.

SfRangeValues _values = SfRangeValues(4.0, 8.0);

Scaffold(
    body: Center(
        child: SfRangeSliderTheme(
            data: SfRangeSliderThemeData(
                tooltipBackgroundColor: Colors.red[300],
            ),
            child:  SfRangeSlider(
                min: 2.0,
                max: 10.0,
                values: _values,
                interval: 1,
                showLabels: true,
                showTooltip: true,
                onChanged: (SfRangeValues newValues){
                    setState(() {
                        _values = newValues;
                    });
                },
           )
       ),
   )
)

Implementation

final Color? tooltipBackgroundColor;