updateFlowState method
Implementation
Future<void> updateFlowState(Map<String, dynamic> updates) async {
__.in_('updateFlowState');
try {
checkInitialized('FlowManager');
if (_activeFlow == null) {
throw Exception('No active flow to update state');
}
await _activeFlow!.updateState(updates);
} catch (e, stackTrace) {
final wrapped = hujFlowException(
message: 'Failed to update flow state',
hujType: hujErrorType.flow,
originalError: e,
);
__.severe(wrapped.message, wrapped, stackTrace);
throw wrapped;
} finally {
__.out_('updateFlowState');
}
}