After googling it I found this
IML is a module file created by IntelliJ IDEA, an IDE used to develop Java applications. It stores information about a development module, which may be a Java, Plugin, Android, or Maven component; saves the module paths, dependencies, and other settings.
But we already have Pubspec.yaml file for dependencies and plugins . So I wanted to know the actual use of .iml file in flutter.
The
pubspec.yamlfile (Flutter) is used to declare your dependencies, fonts, and assets. After you declare the dependency there, you can then use it in your code.While the
.imlfile is used for the project structure in IntelliJ IDEA, it is not specific to Flutter. Whenever you have for example an Android native or Java project you will have a.imlfile in IntelliJ IDEA. Therefore, this file is basically a metadata for IntelliJ IDEA to know how to structure the project and what each folder will be used for, for example:Both
.imlandidea/will be generated when you create a Flutter project and both of them are used for IntelliJ IDEA, you shouldn't change anything in the.imlfile and you don't have to commit it also since it will generated automatically.Check also: https://plugins.jetbrains.com/docs/intellij/project-structure.html?from=jetbrains.org#library