enableFilePickerExceptionHandler property
enableFilePickerExceptionHandler is a flag to enable the exception handler. If it is true, it will show an error toast message when the user denies the permission to access the camera or the gallery. By default, it is true. If you want to handle the exception by yourself, set it to false.
Implementation
bool enableFilePickerExceptionHandler = true;