fromString static method

MimeType fromString(
  1. String mimeType
)

Create a MimeType from its string representation. Returns MimeType.unsupported if the provided string is not supported

Implementation

static MimeType fromString(String mimeType) => _map[mimeType] ?? MimeType.unsupported(mimeType);