scopeOf static method
Provides DimeScope that was last defined in the Widget tree.
Implementation
static DimeScope scopeOf(BuildContext context) {
var dimeFlutter =
(context.dependOnInheritedWidgetOfExactType<DimeFlutter>());
if (dimeFlutter != null) {
return dimeFlutter.scope;
} else {
Fimber.i("No scope - will return root scope.");
return dimeRootScope;
}
}