allMatchMediaTypes method
Returns whether all the resources in the collection are matching any of the given media types.
Implementation
bool allMatchMediaTypes(List<MediaType> mediaTypes) =>
isNotEmpty &&
every((it) =>
mediaTypes.any((mediaType) => mediaType.matches(it.mediaType)));