I have a StreamBuilder like this:
StreamBuilder<List<AuthInfo>>(
stream: myDatabase.authInfosDao.watch(),
builder: (context, snapshot) => (snapshot.data?.length ?? 0) > 0
? Home()
: Auth()),
and I want to redo it into a Stream Provider and that's what happened:
StreamProvider<List<AuthInfo>>.value(
value: myDatabase.authInfosDao.watch(),
initialData: [],
builder: (BuildContext context, AsyncSnapshop snapshot)...
and I can't figure out how to use the data that came in "Value" to load the desired page since there is no snapshot in StreamProvider