Sniffer typedef

Sniffer = Future<MediaType?> Function(SnifferContext context)

Determines if the provided content matches a known MediaType.

@param context Holds the file metadata and cached content, which are shared among the sniffers.

Implementation

typedef Sniffer = Future<MediaType?> Function(SnifferContext context);