removeItem method

void removeItem(
  1. FireData<R> item
)

Useful for deletable items eg contacts and requests

Implementation

void removeItem(FireData<R> item) async {
  final items = state.items;

  items.remove(item);

  emit(
    state.copyWith(
      items: items,
      updatedAt: DateTime.now().millisecondsSinceEpoch,
    ),
  );
}