addItems method

dynamic addItems(
  1. List<T> items
)

Implementation

addItems(List<T> items) {
  final list = state.data?.items;
  list?.insertAll(0, items);

  super.update(state.data?.copyWith(
    items: list,
    addedItems: items,
    updatedItems: [],
  ));
}