isPDF property

bool get isPDF

Checks if the file path or URL represents a PDF document.

Returns true if the MIME type is application/pdf.

Implementation

bool get isPDF {
  final mt = mimeType();
  return mt == 'application/pdf';
}