of static method
The closest instance of this class that encloses the given context.
If there is no enclosing MacosIconButtonTheme widget, then MacosThemeData.macosIconButtonTheme is used.
Typical usage is as follows:
final theme = MacosIconButtonTheme.of(context);
Implementation
static MacosIconButtonThemeData of(BuildContext context) {
final MacosIconButtonTheme? buttonTheme =
context.dependOnInheritedWidgetOfExactType<MacosIconButtonTheme>();
return buttonTheme?.data ?? MacosTheme.of(context).macosIconButtonTheme;
}