selectDocument method
Implementation
Future<String?> selectDocument({List<String>? allowedExtensions}) async {
// if (!(await UFUtils.permissionUtils.getStoragePermission())) {
// await permissionDeniedDialogue();
// return null;
// }
final file = await FilePicker.pickFile(
type: FileType.custom,
allowedExtensions:
allowedExtensions ??
[
'pdf',
'doc',
'docx',
// 'xls',
// 'xlsx',
'png',
'jpg',
'jpeg',
],
);
return file?.path;
}