isImage method

bool isImage()

True if the file is an image.

Implementation

bool isImage() {
  if (content is XFile) {
    return mimeType?.contains('image') ?? false;
  } else {
    return false;
  }
}