I want to use go_router
(https://pub.dev/packages/go_router#redirection) together with Riverpod
.
I have a Provider
and a StreamProvider
, which I would like to combine into a Listenable
so it can be used as the refreshListenable
param of GoRouter
.
I guess I need combine the Provider
and a StreamProvider
into some kind of Provider
(how?).
What is the easiest way to create a Listenable
from a Provider
?
Edit: I understand that this 'negates' the point of Riverpod, but the app is all setup with Riverpod already and I would just like to add go_router.