isPPT method Null safety

bool isPPT(
  1. String filePath
)

Checks if string is an powerpoint file.

Implementation

static bool isPPT(String filePath) {
  final ext = filePath.toLowerCase();

  return ext.endsWith(".ppt") || ext.endsWith(".pptx");
}