addItem method

void addItem(
  1. 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]),
  ));
}