mime_type_extension

Last updated:

0 purchases

mime_type_extension Image
mime_type_extension Images
Add to Cart

Description:

mime type extension

Features #

Convert mime_type to extension
Convert extension to mime_type.

Support 600+ extensions and mime_types.
Getting started #
Import mime_type_extension package.
import 'package:mime_type_extension/mime_type_extension.dart';
copied to clipboard
Usage #
Convert mime_type to extension
String mimeType = 'application/json';
final ext = MimeTypeExtension.instance.mimeTypeToExtension(mimeType);
print(ext); // ".json"
copied to clipboard
Convert extension to mime_type
String ext = '.mp4';
final mimeType = MimeTypeExtension.instance.extensionToMimeType(ext);
print(mimeType); // "video/mp4"
copied to clipboard
Additional information #
If you like this this package please like and give star on Github
If you have issue with this package please create issue on Github
Contact Author

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.