ofFilePath static method
Resolves a format from a local file path.
Implementation
static Future<MediaType?> ofFilePath(String path,
{List<String> mediaTypes = const [],
List<String> fileExtensions = const [],
List<Sniffer> sniffers = MediaType.sniffers}) =>
ofFile(File(path),
mediaTypes: mediaTypes,
fileExtensions: fileExtensions,
sniffers: sniffers);