addItem method
void
addItem(
- Value item
Add item
to the current items
of the current state.
Implementation
void addItem(Value item) {
emit(state.copyWith(
items: SingleFieldBloc._itemsWithoutDuplicates([
...state.items,
item,
]),
));
}