stealth_enum 0.1.1
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
StealthEnumconstructor. - Refined package description to adhere to pub.dev length guidelines.
0.1.0 #
- Initial release.
@StealthEnumannotation withseed,generateWhen, andnameparameters.- Dart 3.3+
extension typeoutput backed by deterministic, collision-free 32-bit hex integers. - Inlined exhaustive
.when()and.maybeWhen()helpers with@pragma('vm:prefer-inline'). - No
StateErrorstrings in the binary — finalwhenbranch uses wildcard_ =>. - Compatible with
SharedPartBuilderalongsidejson_serializable,freezed, andriverpod_generator.