fileType property
FileType
fileType
Converts the AttachmentPickerType to a FileType
.
Implementation
FileType get fileType {
switch (this) {
case AttachmentPickerType.images:
return FileType.image;
case AttachmentPickerType.videos:
return FileType.video;
case AttachmentPickerType.files:
return FileType.any;
case AttachmentPickerType.audios:
return FileType.audio;
}
}