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