of static method
Returns the data from the closest SliderTheme ancestor. If there is no ancestor, it returns FluentThemeData.sliderTheme. Applications can assume that the returned value will not be null.
Typical usage is as follows:
SliderThemeData theme = SliderTheme.of(context);
Implementation
static SliderThemeData of(BuildContext context) {
return SliderThemeData.standard(FluentTheme.of(context)).merge(
_getInheritedThemeData(context),
);
}