isPDF static method

bool isPDF(
  1. String filePath
)

Checks if string is an pdf file.

Implementation

static bool isPDF(String filePath) {
  return filePath.toLowerCase().endsWith(".pdf");
}