containsFromName method

bool containsFromName(
  1. String? other
)

Returns whether the given other media type is included in this media type.

Implementation

bool containsFromName(String? other) {
  MediaType? mediaType = other?.let((it) => MediaType.parse(it));
  if (mediaType == null) {
    return false;
  }
  return contains(mediaType);
}