of static method

The data from the closest SfRangeSliderTheme instance that encloses the given context.

Defaults to SfThemeData.rangeSliderThemeData if there is no SfRangeSliderTheme in the given build context.

Implementation

static SfRangeSliderThemeData? of(BuildContext context) {
  final SfRangeSliderTheme? rangeSliderTheme =
      context.dependOnInheritedWidgetOfExactType<SfRangeSliderTheme>();
  return rangeSliderTheme?.data ?? SfTheme.of(context).rangeSliderThemeData;
}