pickPassport method
Selects a passport file.
Implementation
Future<void> pickPassport() async {
final FilePickerResult? result = await FilePicker.pickFiles(
type: FileType.custom,
allowMultiple: false,
withData: true,
lockParentWindow: true,
allowedExtensions: ['pdf', 'jpg', 'jpeg', 'png'],
);
if (result != null && result.files.isNotEmpty) {
passport.value = NativeFile.fromPlatformFile(result.files.first);
showPassport.value = false;
}
}