Code obfuscation is the process of modifying an app's binary to make it harder for humans to understand. Obfuscation hides function and class names in your compiled Dart code, replacing each symbol with another symbol, making it difficult for an attacker to reverse engineer your proprietary app.
Flutter's code obfuscation works only on a release build.
It is a poor security practice to store secrets in an app.
Obfuscating your code does not encrypt resources nor does it protect against reverse engineering. It only renames symbols with more obscure names.
Web apps don't support obfuscation. A web app can be minified, which provides a similar result. When you build a release version of a Flutter web app, the web compiler minifies the app. To learn more, see Build and release a web app.
The following build targets support the obfuscation process described on this page:
aarapkappbundleiosios-frameworkipalinuxmacosmacos-frameworkwindows