bloc_enhancer 0.9.0 copy "bloc_enhancer: ^0.9.0" to clipboard
bloc_enhancer: ^0.9.0 copied to clipboard

An annotation package simplifying Bloc event and state classes, enhancing code readability and reducing naming conflicts.

0.9.0 | 3.6.2025 #

Chore #

  • Update analyzer constraint to >=8.0.0 <12.0.0

0.8.0 | 3.2.2026 #

Features #

  • Generate isX/asX/asIfX for sealed intermediate state classes (#2)
  • Bump minimum Dart version to 3.0.0

0.7.0 | 2.2.2026 #

Chore #

  • Update Analyzer dependency

0.6.0 | 9.19.2025 #

Chore #

  • Update Analyzer dependency

0.5.1 | 5.5.2025 #

Enhancements #

  • Ignore abstract classes when generating event & state methods

0.5.0 | 2.22.2025 #

Chore #

  • Update Analyzer dependency

0.4.0 | 2.21.2025 #

Chore #

  • Update Dart Formatter and Dart Style to latest versions

0.3.2+1 | 11.20.2024 #

Features #

  • Create "as if" getters for state retrieval
if (state.asIfReady case final readyState?) {
    // Handle the ready state
}

0.3.1 | 10.4.2024 #

Fixes #

  • Do not generate a factory for abstract classes

0.3.0 | 9.27.2024 #

Features #

  • Support creating event factories
    • Annotate the base event class with @createFactory

Enhancements #

  • Check for used names while creating event & state methods
    • If a name conflicts, the method's name will be suffixed with a number
    • This applies to create factories and event methods

Breaking Changes #

  • Deprecate @createStateFactory in favor of @createFactory
    • This will be removed in a future release

0.2.0+1 | 8.20.2024 #

Features #

  • Add check for if the bloc is closed before adding a new event

0.1.0+1 | 3.25.2024 #

Initial Release

2
likes
130
points
4.68k
downloads

Documentation

API reference

Publisher

verified publishermrgnhnt.com

Weekly Downloads

An annotation package simplifying Bloc event and state classes, enhancing code readability and reducing naming conflicts.

Repository (GitHub)
View/report issues
Contributing

Topics

#bloc #code-generation #enhance #state

License

Apache-2.0 (license)

Dependencies

meta

More

Packages that depend on bloc_enhancer