resolveForComponent static method
Resolves theme for a component, registering an inherited dependency.
Implementation
static M3EThemeData? resolveForComponent(BuildContext context) {
final _InheritedM3EThemeScope? inherited = context
.dependOnInheritedWidgetOfExactType<_InheritedM3EThemeScope>();
return inherited?.resolve(context);
}