Skip to content

How to read provider without context? #758

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

You must be logged in to vote

Looks like I found the answer
final user = router.navigatorKey.currentContext!.read(currentUserController).state;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriHeiko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant