of static method
Returns the configuration data from the closest MacosScrollbarTheme ancestor. If there is no ancestor, it returns ThemeData.scrollbarTheme.
Typical usage is as follows:
ScrollbarThemeData theme = ScrollbarTheme.of(context);
Implementation
static MacosScrollbarThemeData of(BuildContext context) {
final MacosScrollbarTheme? scrollbarTheme =
context.dependOnInheritedWidgetOfExactType<MacosScrollbarTheme>();
return scrollbarTheme?.data ?? MacosTheme.of(context).scrollbarTheme;
}