isTxt property

bool get isTxt

Checks if the string represents a TXT file path.

Implementation

bool get isTxt => _endsWith('.txt');