hasFileExtension method

bool hasFileExtension(
  1. List<String> fileExtensions
)

Returns whether this context has any of the given file extensions, ignoring case. */

Implementation

bool hasFileExtension(List<String> fileExtensions) =>
    fileExtensions.any((fileExtension) =>
        this.fileExtensions.contains(fileExtension.toLowerCase()));