handleApiNavigation method
void
handleApiNavigation(
Implementation
void handleApiNavigation(PreflightResponse response) {
_notifyDocumentUploadProviders(response);
state = state.copyWith(
pendingSessionId: response.sessionId,
pendingEntityState: response.entityIdState,
pendingExtraData: response.extraData,
pendingRequirement: response.requirement,
currentEntityState: response.entityIdState,
);
if (response.extraData != null && _context != null) {
handleExtraData(response.extraData!, _context!);
}
final determinedStep = determineNextStep(response);
if (state.currentStep.type == VerificationStepType.consent) {
state = state.copyWith(nextStep: determinedStep);
return;
}
state = state.copyWith(currentStep: determinedStep);
}