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