getMimeType static method

String getMimeType(
  1. String? path
)

get file mime type

Implementation

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