How do I use a StreamProvider from a StateNotifierProvider?

Issue I am try to use a StreamProvider from a StateNotifierProvider. Here is my StreamProvider, which works fine so far. final productListStreamProvider = StreamProvider.autoDispose<List<ProductModel>>((ref) { CollectionReference ref = FirebaseFirestore.instance.collection(‘products’); return ref.snapshots().map((snapshot) { final list = snapshot.docs .map((document) => ProductModel.fromSnapshot(document)) .toList();

Continue reading