INNER CODE UNIT · Dart
_InheritedFlowController
felangel/flow_builder · lib/flow_builder.dart:206
class _InheritedFlowController<T> extends InheritedWidget {
const _InheritedFlowController({
required this.controller,
required super.child,
super.key,
});
final FlowController<T> controller;
static FlowController<T> of<T>(BuildContext context) {
final inheritedFlowController = context
.getElementForInheritedWidgetOfExactType<_InheritedFlowController<T>>()
?.widget as _InheritedFlowController<T>?;
if (inheritedFlowController == null) {
throw FlutterError(
'''
context.flow<$T>() called with a context that does not contain a FlowBuilder of type $T.