isTxt static method

bool isTxt(
  1. String filePath
)

文件是否是Txt

Implementation

static bool isTxt(String filePath) {
  return filePath.toLowerCase().endsWith(".txt");
}