isPdf static method

bool isPdf(
  1. String? s
)

验证是否为 PDF 文档名(.pdf)。

Implementation

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