Skip to main content

stealth_enum_generator 2.2.4 copy "stealth_enum_generator: ^2.2.4" to clipboard
stealth_enum_generator: ^2.2.4 copied to clipboard

Code generator for stealth_enum that transforms private enums into zero-cost obfuscated extension types to eliminate AOT binary metadata.

example/example.dart

// Example showing how stealth_enum_generator is invoked via build_runner.
//
// 1. In your pubspec.yaml:
//
// dependencies:
//   stealth_enum: ^2.0.0
//
// dev_dependencies:
//   build_runner: ^2.4.0
//   stealth_enum_generator: ^2.0.0
//
// 2. In your Dart file:
//
// import 'package:stealth_enum/stealth_enum.dart';
//
// part 'example.g.dart';
//
// @StealthEnum()
// enum _UserRole { guest, member, admin }
//
// 3. Run the generator:
// dart run build_runner build
void main() {
  print('stealth_enum_generator generates extension types using build_runner.');
}
12
likes
0
points
588
downloads

Publisher

verified publisheraslamambiloly.2bd.net

Weekly Downloads

Code generator for stealth_enum that transforms private enums into zero-cost obfuscated extension types to eliminate AOT binary metadata.

Repository (GitHub)
View/report issues

Topics

#security #obfuscation #reverse-engineering #code-generation #build-runner

License

unknown (license)

Dependencies

analyzer, build, crypto, source_gen, stealth_enum

More

Packages that depend on stealth_enum_generator