isTxt property

bool get isTxt

Checks if string is an txt file.

Implementation

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