riverpod_generator 2.0.0 copy "riverpod_generator: ^2.0.0" to clipboard
riverpod_generator: ^2.0.0 copied to clipboard

A code generator for Riverpod. This both simplifies the syntax empowers it, such as allowing stateful hot-reload.

2.0.0 #

  • Add support for returning a Stream inside providers. This is equivalent to creating a StreamProvider using the "old" syntax.

  • Bump minimum riverpod_analyzer_utils version

  • Syntax sugar for providers which must be overridden is now available:

    @riverpod
    int count();
    

    This is equivalent to writing:

    @riverpod
    int count(CountRef ref) => throw UnsupportedError('...');
    
  • Fix exception thrown when the analyzed file has some syntax errors.

1.2.0 #

  • It is now possible to specify @Riverpod(dependencies: [...]) to scope providers
  • Marked @Riverpod as @sealed

1.1.1 #

Upgrade Riverpod to latest

1.1.0 #

  • The generated hash function of providers is now correctluy private (thanks to @westito)
  • Allow customizing the name of the generated providers (thanks to @trejdych)
  • Update dependencies.

1.0.6 #

Upgrade Riverpod to latest

1.0.5 #

  • Upgrade Riverpod and annotation package to latest

1.0.4 #

  • Update dependencies.

1.0.4 #

  • Update dependencies.

1.0.2 #

  • Update a dependency to the latest release.

1.0.1 #

Fix version conflict with Riverpod

1.0.0 #

Initial release

335
likes
0
pub points
97%
popularity

Publisher

verified publisherdash-overflow.net

A code generator for Riverpod. This both simplifies the syntax empowers it, such as allowing stateful hot-reload.

Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

github.com

License

unknown (LICENSE)

Dependencies

analyzer, build, build_config, collection, crypto, meta, path, riverpod_analyzer_utils, riverpod_annotation, source_gen

More

Packages that depend on riverpod_generator