maybeOf static method
- BuildContext context
null outside a scope - for consumers that can live without the morph engine (e.g. MorphSkin as pure fusion).
Implementation
static MorphScopeState? maybeOf(BuildContext context) {
return context.getInheritedWidgetOfExactType<_MorphScopeMarker>()?.state;
}