PackageTrack
Sign in Get early access

bloc_enhancer_gen

A code generator for simplifying Bloc event and state classes, enhancing code readability and reducing naming conflicts.

0.9.2 12K downloads/mo #2740 most downloaded on pub.dev Couchsurfing/dart-bloc-enhancer

What this package is like to depend on

Last release 2 months ago

06 Jun 2026

Ships fairly regularly

a new release about every 2 months

Nearly every release is documented

notes for 14 of 15 stable releases

Nothing withdrawn

no release was ever pulled

2 years old

15 releases · first in 2024

6 releases in the last 12 months

see the full history below

Release timeline

15 releases · Mar 2024 to Jun 2026
2025 2026
Release Pre-release

Releases

latest 15
  1. 0.9.2 06 Jun 2026
    Release notes

    Fixes

    • Resolve super formal parameter types when the super constructor uses private field formals (e.g. super.all forwarding to this._all)
    • Strip leading underscores from private field-formal names in generated create factory methods and constructor calls (e.g. this._offsetoffset:)
    Open source →
  2. 0.9.1 24 Mar 2026
    Release notes

    Features

    • Support event/state classes with generic type parameters (e.g. class _AddTokenFailed<E extends Object>)
      • Type parameters are propagated to generated methods and constructor calls for full type safety at the call site
      • Thank you for your contribution @SupposedlySam!
    Open source →
  3. 0.9.0 06 Mar 2026
    Release notes

    Chore

    • Update analyzer constraint to >=8.0.0 <12.0.0
    Open source →
  4. 0.8.0 02 Mar 2026
    Release notes

    Features

    • Generate isX/asX/asIfX for sealed intermediate state classes (#2)
    • Bump minimum Dart version to 3.0.0
    Open source →
  5. 0.7.0 02 Feb 2026
    Release notes

    Chore

    • Update Analyzer dependency
    Open source →
  6. 0.6.0 19 Sep 2025
    Release notes

    Chore

    • Update Analyzer dependency
    Open source →
  7. 0.5.1 06 May 2025
    Release notes

    Enhancements

    • Ignore abstract classes when generating event & state methods
    Open source →
  8. 0.5.0 22 Feb 2025
    Release notes

    Chore

    • Update Analyzer dependency
    Open source →
  9. 0.4.0 21 Feb 2025
    Release notes

    Chore

    • Update Dart Formatter and Dart Style to latest versions
    Open source →
  10. 0.3.2 20 Nov 2024

    Nothing published for this version

  11. 0.3.2+1 20 Nov 2024
    Release notes

    Features

    • Create "as if" getters for state retrieval
    if (state.asIfReady case final readyState?) {
        // Handle the ready state
    }
    
    Open source →
  12. 0.3.1 04 Oct 2024
    Release notes

    Fixes

    • Do not generate a factory for abstract classes
    Open source →
  13. 0.3.0 27 Sep 2024
    Release notes

    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
    Open source →
  14. 0.2.0+1 20 Aug 2024
    Release notes

    Features

    • Add check for if the bloc is closed before adding a new event
    Open source →
  15. 0.1.0+1 25 Mar 2024
    Release notes

    Initial Release

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive