SnifferContext constructor

SnifferContext({
  1. SnifferContent? content,
  2. List<String> mediaTypes = const [],
  3. 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();