isTxt static method

bool isTxt(
  1. String? s
)

验证是否为文本文件名(.txt)。

Implementation

static bool isTxt(String? s) =>
    s != null && s.isNotEmpty && _txtRegExp.hasMatch(s);