isTextFile property

bool get isTextFile

Check if this is a text file based on extension.

Implementation

bool get isTextFile {
  const textExtensions = {
    'txt',
    'json',
    'md',
    'xml',
    'html',
    'css',
    'js',
    'dart',
    'yaml',
    'yml',
    'csv',
    'log',
    'ini',
    'conf',
    'cfg',
    'ttl',
    'rdf',
    'n3',
    'jsonld',
    'acl',
  };
  return textExtensions.contains(extension);
}