Skip to content

StateNotifier using either Ref or WidgetRef #1152

Answered by rrousselGit
scopendo asked this question in Q&A
Discussion options

You must be logged in to vote

However, I wondered why Ref and WidgetRef don't share a common interface?

That's voluntary. The fact that you need a common interface shows a flaw in your architecture

You most definitely did something wrong somewhere. You should never need to use WidgetRef outside of widgets

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rrousselGit
Comment options

@scopendo
Comment options

@rrousselGit
Comment options

@scopendo
Comment options

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