hasTopLevelMediaType method

bool hasTopLevelMediaType(
  1. String topLevelType
)

Returns true if the mediaType has the given top-level type.

Implementation

bool hasTopLevelMediaType(String topLevelType) =>
    mediaType.startsWith('$topLevelType/');