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