of static method
Resolves a format from file extension and media type hints, without checking the actual content.
Implementation
static Future<MediaType?> of(
{List<String> mediaTypes = const [],
List<String> fileExtensions = const [],
List<Sniffer> sniffers = MediaType.sniffers}) =>
_of(
content: null,
mediaTypes: mediaTypes,
fileExtensions: fileExtensions,
sniffers: sniffers);