getContentTypeForFile function
Implementation
ContentType? getContentTypeForFile(ContentType? contentType, File file) {
if (contentType == null ||
contentType.mimeType == ContentType.text.mimeType) {
return getFileContentType(file);
} else {
return ContentType.binary;
}
}