djangoflow / list_bloc

BLoC management of simple, filtered, sorted and paged lists.
3 stars 10 forks source link

Enhance ListCubit Class with Add, Remove, and Replace Methods #32

Closed ChHannan closed 1 year ago

ChHannan commented 1 year ago

Issue #18

Description: This pull request enhances the functionality of the ListCubit class by adding three new methods: add, remove, and replace. These methods allow for easier manipulation of the state within the ListCubit, enabling developers to seamlessly add, remove, or replace items in the list.

To demonstrate the usage of List-Cubit, a simple Flutter project has been created in the ./example folder. The project showcases how to use the ListCubit class by providing a user interface that allows users to fetch data and add, remove, and replace items in the list cubit.