Skip to main content

stealth_enum 0.1.1 copy "stealth_enum: ^0.1.1" to clipboard
stealth_enum: ^0.1.1 copied to clipboard

Obfuscates Dart enums into zero-cost extension types backed by high-entropy integers, eliminating enum metadata from Flutter AOT binaries.

0.1.1 #

  • Added package example in example/example.dart.
  • Added dartdoc comments for StealthEnum constructor.
  • Refined package description to adhere to pub.dev length guidelines.

0.1.0 #

  • Initial release.
  • @StealthEnum annotation with seed, generateWhen, and name parameters.
  • Dart 3.3+ extension type output backed by deterministic, collision-free 32-bit hex integers.
  • Inlined exhaustive .when() and .maybeWhen() helpers with @pragma('vm:prefer-inline').
  • No StateError strings in the binary — final when branch uses wildcard _ =>.
  • Compatible with SharedPartBuilder alongside json_serializable, freezed, and riverpod_generator.
10
likes
160
points
0
downloads

Documentation

API reference

Publisher

verified publisheraslamambiloly.2bd.net

Weekly Downloads

Obfuscates Dart enums into zero-cost extension types backed by high-entropy integers, eliminating enum metadata from Flutter AOT binaries.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

meta

More

Packages that depend on stealth_enum