isPresentationFile static method

bool isPresentationFile(
  1. String filename
)

Checks if the given filename corresponds to a presentation file.

Parameters:

  • filename: The name of the file to check.

Returns:

  • A boolean indicating whether the file is a presentation file.

Implementation

static bool isPresentationFile(String filename) {
  return filename.endsWith(".ppt") || filename.endsWith(".pptx");
}