of static method

ContentType of(
  1. String value
)

Implementation

static ContentType of(final String value) {
  final mimeType = value.split(';').first;

  return _kValueForContentType[mimeType] ?? _kDefaultContentTypeEntry.key;
}