isFileSupported method

bool isFileSupported(
  1. String filename
)

Implementation

bool isFileSupported(String filename) {
  for (final extension in supportedFileExtensions) {
    if (filename.endsWith('.$extension')) return true;
  }
  return false;
}