choosing the correct flutter bloc widget that doesn't depend on states

411 views Asked by At

Which flutter bloc widget to use if i want to add an item to list in bloc class and automatically update the UI on the basis of items of that list without the use of states (without yielding a state upon addition of new item to the list)? In another words, how to get same functionality as notifyListeners() function from provider package?

1

There are 1 answers

0
nvoigt On BEST ANSWER

The flutter_bloc package includes the lightweight Cubit<> class that is basically what you want: a bloc without extra states.

You can read all about cubits in the official documentation for flutter_bloc.