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?
choosing the correct flutter bloc widget that doesn't depend on states
397 views Asked by Manish Wagle At
1
The
flutter_bloc
package includes the lightweightCubit<>
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
.