Accoding to Flutter's build modes,
Compilation is optimized for fast startup, fast execution, and small package sizes.
What exactly does optimizing for small package sizes mean?
For web apps, the doc states:
The build is minified and tree shaking has been performed.
Does Flutter perform dead-code elimination on Dart code for Android/iOS when building the app in release mode? If so, how?
Comment: When analyzing the generated Android release apk using Deeper analysis in DevTools
, it seems that dead code is not included. So at least for Android, it seems that Flutter performs dead-code elimination in release mode.