isPresentationFile static method

bool isPresentationFile(
  1. String filename
)

Checks if the given filename corresponds to a presentation file.

Implementation

static bool isPresentationFile(String filename) {
  return _hasExtension(filename, ['ppt', 'pptx']);
}