getFileContentType function
Implementation
ContentType? getFileContentType(File file) {
final _fileMemeType = getFileMimeType(file);
/// files without known extension
if (_fileMemeType != null) {
final split = _fileMemeType.split('/');
return ContentType(split[0], split[1]);
}
return null;
}