addExtension method

void addExtension (
  1. String extension,
  2. String mimeType
)

Add a new MIME-type mapping to the MimeTypeResolver. If the extension is already present in the MimeTypeResolver, it'll be overwritten.

Implementation

void addExtension(String extension, String mimeType) {
  _extensionMap[extension] = mimeType;
}