of static method
If there is no HelperOrchestrator in scope
See also:
- maybeOf, which is a similar function but will return null instead of throwing if there is no HelperOrchestrator ancestor.
Implementation
static HelperOrchestratorState of(BuildContext context) {
assert(debugCheckHasScaffoldMessenger(context));
final _HelperOrchestratorScope scope =
context.dependOnInheritedWidgetOfExactType<_HelperOrchestratorScope>()!;
return scope._helperOrchestratorState;
}