setContext method
Implementation
void setContext(BuildContext context) {
__.in_('setContext');
try {
// This will throw an exception if not initialized
checkInitialized('FlowManager');
if (_activeFlow != null) {
_activeFlow!.setContext(context);
}
} catch (e, stackTrace) {
final wrapped = hujFlowException(
message: 'Cannot set context - flow manager not initialized',
hujType: hujErrorType.flow,
originalError: e,
);
__.warning('$wrapped.message, $wrapped, $stackTrace');
// Don't rethrow - we don't want to crash the app in build
} finally {
__.out_('setContext');
}
}