How to install and use mime with Flutter 3.10.5

A popular Flutter package with 321 likes that support Flutter version 3.10.5 and above. Last version of the package was published on Jul 31, 2023.

Installing mime

You can either add the package directly using the flutter command line.

$ flutter pub add mime

Or add the dependency directly to your pubspec.yaml file.
dependencies:
  mime: ^1.0.4

In either case, make sure to refresh your packages by running the following command:

$ flutter pub get

Using mime

Once you have installed the package, you can use it in your Flutter application by importing it.
import 'package:mime/mime.dart';