inactiveDividerStrokeColor property Null safety

Color? inactiveDividerStrokeColor
final

Specifies the stroke color for the inactive divider in the SfSlider, SfRangeSlider, and SfRangeSelector.

Defaults to null.

The inactive side of the SfRangeSlider and SfRangeSelector is between the min value and the start thumb and end thumb and max value.

For RTL, the inactive side of the SfRangeSlider and SfRangeSelector is between the max value and the start thumb and end thumb and min value.

The inactive side of the SfSlider is between the max value and the thumb.

This snippet shows how to set inactive divider stroke color in SfRangeSliderThemeData.

SfRangeValues _values = SfRangeValues(4.0, 7.0);

Scaffold(
  body: Center(
      child: SfRangeSliderTheme(
          data: SfRangeSliderThemeData(
              inactiveDividerStrokeWidth: 2,
              inactiveDividerStrokeColor: Colors.red,
          ),
          child:  SfRangeSlider(
              min: 2.0,
              max: 10.0,
              values: _values,
              onChanged: (SfRangeValues newValues){
                  setState(() {
                      _values = newValues;
                  });
              },
          )
      ),
   )
)

Implementation

final Color? inactiveDividerStrokeColor;