get file mime type
static String getMimeType(String? path) { String? mimeType = lookupMimeType(path!); if (Files._isNullOREmpty(mimeType)) { mimeType = ""; } return mimeType.toString(); }