isImage property

bool get isImage

Implementation

bool get isImage {
  if (this is File) {
    var f = this as File;
    return f.mimeTypeType == "image" || f.fileExtensionWithoutDot.flatContainsAny(["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "tiff", "ico"]);
  }
  return false;
}