SnifferContext constructor
SnifferContext({
- SnifferContent? content,
- List<
String> mediaTypes = const [], - List<
String> fileExtensions = const [],
Implementation
SnifferContext({
this.content,
List<String> mediaTypes = const [],
List<String> fileExtensions = const [],
}) : mediaTypes =
mediaTypes.mapNotNull((it) => MediaType.parse(it)).toList(),
fileExtensions = fileExtensions.map((it) => it.toLowerCase()).toList();