isTxt static method

bool isTxt(
  1. String s
)

Checks if string is an txt file. 检查字符串是否为txt文本文件

Implementation

static bool isTxt(String s) =>
    RegexUtils.hasMatch(s, RegexConstants.txt);