addItems method

void addItems(
  1. List<FireData<R>> newItems
)

Implementation

void addItems(List<FireData<R>> newItems) async {
  final previousItems = state.items;

  emit(
    state.copyWith(
      items: [...newItems, ...previousItems],
      addedItems: newItems,
      updatedAt: DateTime.now().millisecondsSinceEpoch,
    ),
  );
}