allMatchMediaType method

bool allMatchMediaType(
  1. MediaType mediaType
)

Returns whether all the resources in the collection are matching the given media type.

Implementation

bool allMatchMediaType(MediaType mediaType) =>
    isNotEmpty && every((it) => mediaType.matches(it.mediaType));