Obfuscating Dart code

What is code obfuscation?

Limitations

Supported targets

Obfuscating your app

Reading an obfuscated stack trace

Caveat

What is code obfuscation?

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.

Limitations

Note that obfuscating your code does not
encrypt resources nor does it protect against
reverse engineering.
It only renames symbols with more obscure names.

It is a poor security practice to
  store secrets in an app.