isTxt property

bool get isTxt

Checks if string is an txt file.

Implementation

bool get isTxt => toLowerCase().endsWith(".txt");