of static method

ZdsNestedFlowState of(
  1. BuildContext context
)

Return the ZdsNestedFlowState of the current ZdsNestedFlow

Implementation

static ZdsNestedFlowState of(BuildContext context) {
  final ZdsNestedFlowState? stateOfType = context.findAncestorStateOfType<ZdsNestedFlowState>();
  if (stateOfType == null) {
    throw FlutterError('Ancestor state of type ZdsNestedFlowState not found');
  }
  return stateOfType;
}