isTxt property

bool get isTxt

Determines whether a given string represents a text file.

Implementation

bool get isTxt {
  return toLowerCase().endsWith('.txt');
}