isDocument property

bool get isDocument

Implementation

bool get isDocument {
  if (this is File) {
    var f = this as File;
    return f.fileExtensionWithoutDot.flatContainsAny(["pdf", "doc", "docx", "xls", "xlsx", "csv", "ppt", "pptx", "pps", "txt", "md", "html", "htm"]);
  }
  return false;
}