lookup static method

String? lookup(
  1. String path, {
  2. List<int>? headerBytes,
})

Performs a MIME-type lookup and returns it, if any is determined.

If headerBytes is present, a match for known magic-numbers will be performed first. This allows the correct MIME-type to be found, even though a file have been saved using the wrong file extension.

Implementation

static String? lookup(String path, {List<int>? headerBytes}) =>
    resolver.lookup(path, headerBytes: headerBytes);