enum_generator 1.2.2 copy "enum_generator: ^1.2.2" to clipboard
enum_generator: ^1.2.2 copied to clipboard

This is a lightweight library to create functionality for enum class type and make enum usage much better.

1.2.2 #

🚀 New Features

  • Added dot shorthand syntax support in generated code (e.g., .value instead of EnumName.value)
    • Generated code now uses modern Dart 3.10+ syntax for cleaner, more readable code
    • Requires Dart SDK >=3.10.0

🔄 Changed

  • Updated analyzer constraint to support analyzer 9.x (>=7.0.0)
  • Updated build dependency constraint to >=4.0.0
  • Updated SDK constraint to >=3.10.0 <4.0.0 to support dot shorthand syntax

1.2.1 #

🔄 Changed

  • Updated build dependency constraint to ^4.0.0 for compatibility with build_runner >=2.9.0

📝 Documentation

  • Added platform compatibility section to README explaining build-time vs runtime compatibility
  • Added comments in pubspec.yaml clarifying build-time code generator requirements

🐛 Fixed

  • Fixed code formatting issues to match Dart formatter standards

1.2.0 #

🚀 New Features

  • Enhanced null safety support with proper null handling in enum generation
  • Improved code generation with better null safety annotations

🔄 Changed

  • Updated build package to ^4.0.2 for better performance and stability
  • Updated build_config to ^1.2.0
  • Updated source_gen to support ^2.0.0 to ^5.0.0
  • Updated analyzer to support ^5.13.0 to ^9.0.0
  • Updated flutter_lints to ^6.0.0
  • Updated SDK constraint to ^3.8.0 for better compatibility
  • Removed unnecessary library declaration for cleaner code

🐛 Fixed

  • Fixed null safety warnings in enum generation
  • Fixed unnecessary_library_name lint warning
  • Improved example code with proper I/O methods instead of print statements

1.1.4 #

🔄 Changed

  • Loosened analyzer version to support both ^5.13.0 and ^8.0.0
  • Loosened sourcegen version to support both ^1.0.0 to ^2.0.0

1.1.3 #

🔄 Changed

  • Bump source_gen to 2.0.0

1.1.2 #

🔄 Changed

  • Loosened analyzer version to support both ^5.13.0 and ^6.0.0

1.1.1 #

🔄 Changed

  • Updated analyzer dependency to 6.2.0.

1.1.0 #

  • Supports flutter3

1.0.9 #

  • Fix cannot generate files

1.0.8 #

  • Update README.md documents

1.0.7 #

  • Fix generate fail with enum has constructor.

1.0.6 #

  • Using enum_annotation instead

1.0.5 #

  • Fix bugs

1.0.4 #

  • Export annotation package

1.0.3 #

  • Change annotation package

1.0.2 #

  • Change packages info

1.0.1 #

  • Fix bugs

0.0.1 #

  • TODO: Describe initial release.
4
likes
160
points
264
downloads

Publisher

unverified uploader

Weekly Downloads

This is a lightweight library to create functionality for enum class type and make enum usage much better.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

Apache-2.0 (license)

Dependencies

analyzer, build, build_config, enum_annotation, flutter, source_gen

More

Packages that depend on enum_generator