bloc_enhancer 0.3.2+1 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.0 | 9.27.2024 #
Features #
- Support creating event factories
- Annotate the base event class with
@createFactory
- Annotate the base event class with
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.1.0+1 | 3.25.2024 #
Initial Release