isPDFFile static method
Checks if the given filename corresponds to a PDF file.
Parameters:
filename
: The name of the file to check.
Returns:
- A boolean indicating whether the file is a PDF file.
Implementation
static bool isPDFFile(String filename) {
return filename.endsWith(".pdf");
}