maybeSpecOf static method
- BuildContext context
Like specOf, but null outside a tag subtree.
Implementation
static MorphSurfaceSpec? maybeSpecOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<MorphSurfaceSpecScope>()
?.spec;
}