updateItems method
Set items
to the items
of the current state.
If you want to add or remove elements to items
of the current state,
use addItem or removeItem.
Implementation
void updateItems(List<Value> items) {
items = SingleFieldBloc._itemsWithoutDuplicates(items);
emit(state.copyWith(
items: items,
value: items.contains(value) ? null : Param(null),
));
}