Skip to content

What is best practice to initialise a NotifierProvider with a parameter from a widget #3720

Answered by snapsl
aidanmack asked this question in Q&A
Discussion options

You must be logged in to vote

I would suggest using a family provider to pass the card id.

final state = ref.watch(cardServicesProvider(cardId));

Replies: 1 comment 1 reply

Comment options

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

Answer selected by aidanmack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants