isText property

bool get isText

Implementation

bool get isText {
  if (this is File) {
    var f = this as File;
    return f.mimeTypeType == "text" || f.fileExtensionWithoutDot.flatContainsAny(["txt", "md"]) || isSourceCode;
  }
  return false;
}