Skip to content
Discussion options

You must be logged in to vote

You probably don't want to use watch and instead want to use listen

StateNotifierProvider<DownloadController, State>((ref) {
  final controller = DownloadController();
  ref.listen<List<Item>>(itemListController, (_, itemList) {
    // do something with itemList
  });
  return controller;
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@m-haisham
Comment options

Answer selected by m-haisham
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
Converted from issue

This discussion was converted from issue #1047 on January 01, 2022 14:18.