Skip to content

Generate Stateprovider using riverpod_generator #1725

Answered by TimWhiting
wurikiji asked this question in Q&A
Discussion options

You must be logged in to vote

StateProvider is simple without the generator. I'm curious why you are wanting to generate it specifically. The generator makes StateNotifier providers simpler by letting you define methods directly on a class and not splitting up the definition of the class and the definition of the provider.

You can freely use regular riverpod and generated riverpod together.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@rrousselGit
Comment options

Answer selected by wurikiji
Comment options

You must be logged in to vote
2 replies
@ened
Comment options

@ened
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants