Explain the term “Tree shaking” in Flutter.

Tree shaking is a method of removing the unused module in the bundle during the development process. Tree shaking serves as a sort of optimization technique that optimizes the code by removing the dead code.

While importing or exporting codes, there might be dead codes hanging around. Removing these dead codes reduces the code size which in turn improves the performance of the application.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *