of static method
Returns the nearest SelectThemeData or a fallback derived from the current Material ThemeData.
Implementation
static SelectThemeData of(BuildContext context) {
final SelectTheme? inheritedTheme = context
.dependOnInheritedWidgetOfExactType<SelectTheme>();
return inheritedTheme?.data ?? SelectThemeData.fallback(Theme.of(context));
}