maybeOf static method
Returns the nearest scope, if any.
Implementation
static M3EThemeScopeState? maybeOf(BuildContext context) {
final _InheritedM3EThemeScope? inherited = context
.getInheritedWidgetOfExactType<_InheritedM3EThemeScope>();
return inherited?.scopeState;
}