submit method
Implementation
Future<void> submit({required String userId}) async {
_update(_state.copyWith(phase: FaceCapturePhase.uploading));
try {
_update(_state.copyWith(phase: FaceCapturePhase.uploadSuccess));
} catch (e) {
_update(
_state.copyWith(
phase: FaceCapturePhase.uploadFailure,
errorMessage: e.toString(),
),
);
}
}