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