From 70f5e16e71ce1880462507fe9b5f4d812c6265c8 Mon Sep 17 00:00:00 2001 From: Lukas Renggli Date: Wed, 16 Aug 2023 16:35:51 +0200 Subject: [PATCH] Add missing documentation of method `Stream.tapEachEvent()` --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8a5a64c..bd31e69 100644 --- a/README.md +++ b/README.md @@ -283,6 +283,8 @@ Various other transformations are provided to simplify processing complex stream `Stream flatten()` on `Stream>` - Executes the provided callbacks on each event of this stream. \ `Future forEachEvent({onText: ...})` on `Stream`. +- Executes the provided callbacks on each event of this stream as a side-effect. \ + `Stream tapEachEvent({onText: ...})` on `Stream`. For example, the following snippet downloads data from the Internet, converts the UTF-8 input to a Dart `String`, decodes the stream of characters to `XmlEvent`s, and finally normalizes and prints the events: