isDoc static method

bool isDoc(
  1. String? s
)

验证是否为 Word 文档名(.doc/.docx)。

Implementation

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