Skip to content

Mocking a Riverpod-generated AutoDisposeNotifier results in ...has no instance method '_setElement'. #2514

Answered by derolf
derolf asked this question in Q&A
Discussion options

You must be logged in to vote

This works:

class MockFoo extends AutoDisposeNotifier<Bar> with Mock implements Foo {
}

Replies: 4 comments 4 replies

Comment options

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

Comment options

You must be logged in to vote
1 reply
@vdmytrovskyi-hpe
Comment options

Answer selected by derolf
Comment options

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

@tomdittrich
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
7 participants