allMatchMediaTypes method

bool allMatchMediaTypes(
  1. List<MediaType> mediaTypes
)

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)));