hasPDFExtension static method

bool hasPDFExtension(
  1. String filePath
)

Checks if the given file path has a PDF extension.

Implementation

static bool hasPDFExtension(String filePath) =>
    p.extension(filePath).toLowerCase() == ".pdf";