isSupportedExtension property

bool get isSupportedExtension

Returns true if the file extension is known and supported.

This checks whether extension is non-null and included in FileHelper.allSupportedExtensions.

Implementation

bool get isSupportedExtension => extension != null && FileHelper.allSupportedExtensions.contains(extension);