bloc_enhancer 0.3.2+1 copy "bloc_enhancer: ^0.3.2+1" to clipboard
bloc_enhancer: ^0.3.2+1 copied to clipboard

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

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
37
downloads

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

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

meta

More

Packages that depend on bloc_enhancer