of static method
Get WidgetThemeScope.
You can check the current whdget theme setting.
Implementation
static WidgetThemeScope of(BuildContext context) {
return context
.getElementForInheritedWidgetOfExactType<WidgetThemeScope>()!
.widget as WidgetThemeScope;
}