maybeOf static method

M3EThemeScopeState? maybeOf(
  1. BuildContext context
)

Returns the nearest scope, if any.

Implementation

static M3EThemeScopeState? maybeOf(BuildContext context) {
  final _InheritedM3EThemeScope? inherited = context
      .getInheritedWidgetOfExactType<_InheritedM3EThemeScope>();
  return inherited?.scopeState;
}