isPDF property

bool get isPDF

Determines whether a given string represents a PDF file.

Implementation

bool get isPDF {
  return toLowerCase().endsWith('.pdf');
}