isImage method
True if the file is an image.
Implementation
bool isImage() {
if (content is XFile) {
return mimeType?.contains('image') ?? false;
} else {
return false;
}
}
True if the file is an image.
bool isImage() {
if (content is XFile) {
return mimeType?.contains('image') ?? false;
} else {
return false;
}
}