mime_dart

Last updated:

0 purchases

mime_dart Image
mime_dart Images
Add to Cart

Description:

mime dart

Mime Types for Dart and Flutter
Features #

Get Mime Types from Extension
Get Extensions Name from Mime Type

Usage #
import 'package:mime_dart/mime_dart.dart';

void main(List<String> args) {
print(Mime.getExtensionsFromType('application/xml'));
// returns `[xml, xsl, xsd, rng]`

print(Mime.getTypesFromExtension('xml'));
// returns `[application/xml, text/xml]`

print(Mime.getMimeData('application/xml'));
// returns MimeData(
// charset: null,
// source: iana,
// compressible: true,
// extensions: [xml, xsl, xsd, rng],
// );
}
copied to clipboard

License:

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

Customer Reviews

There are no reviews.