Skip to content

Notifier.listenSelf Not Working ! #3848

Answered by charlescyt
adilazhar asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of overriding listenSelf, you invoke it directly inside the build method.

@riverpod
class CategoryController extends _$CategoryController {
  @override
  Stream<List<Category>> build() {
    listenSelf(...);
  }
}

Replies: 1 comment 1 reply

Comment options

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

Answer selected by adilazhar
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