I want to have two stream providers of type QuerySnapshot from two different Firebase collections. When I tried just making two stream providers of the same value, one of the stream providers just overrided the other one. Is it possible to somehow differentiate between two stream providers of the same data type? Here is my current code for the two providers:
@override
Widget build(BuildContext context) {
return MultiProvider(
providers: [
StreamProvider.value(value: FirestoreHelper.getClassCollectionReference(context).snapshots()),
StreamProvider.value(value: FirestoreHelper.getTaskCollectionReference(context).snapshots()),
],