of static method
- BuildContext context
Returns the configuration data from the closest SearchViewTheme ancestor. If there is no ancestor, it returns ThemeData.searchViewTheme.
Typical usage is as follows:
SearchViewThemeData theme = SearchViewTheme.of(context);
Implementation
static SearchViewThemeData of(BuildContext context) {
final SearchViewTheme? searchViewTheme = context.dependOnInheritedWidgetOfExactType<SearchViewTheme>();
return searchViewTheme?.data ?? Theme.of(context).searchViewTheme;
}