addItem method
void
addItem(
- ItemType newItem
Implementation
void addItem(ItemType newItem) {
_pagingState.maybeMap((value) {
var items = [newItem, ...value.items];
emit(PagingStateData(items, value.status, value.hasRequestNextPage));
}, orElse: () => null);
}