errorMessagePDF static method

String errorMessagePDF(
  1. String? path
)

Returns an error message when a file is not a valid PDF or does not exist.

  • path The file path of the invalid or non-existent PDF.

Implementation

static String errorMessagePDF(String? path) =>
    "File is not of PDF type or does not exist: ${path ?? "File in bytes"}";