of static method
Get AppThemeData placed on the widget tree.
ウィジェットツリー上に配置されているAppThemeDataを取得します。
Implementation
static AppThemeData of(BuildContext context) {
final scope = context
.getElementForInheritedWidgetOfExactType<AppThemeScope>()
?.widget as AppThemeScope?;
assert(scope != null, "AppThemeData is not found.");
return scope!.theme;
}