Skip to content

Commit

Permalink
Add missing documentation of method Stream<XmlEvent>.tapEachEvent()
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Aug 16, 2023
1 parent d6e04bc commit 70f5e16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ Various other transformations are provided to simplify processing complex stream
`Stream<T> flatten()` on `Stream<Iterable<T>>`
- Executes the provided callbacks on each event of this stream. \
`Future forEachEvent({onText: ...})` on `Stream<XmlEvent>`.
- Executes the provided callbacks on each event of this stream as a side-effect. \
`Stream<XmlEvent> tapEachEvent({onText: ...})` on `Stream<XmlEvent>`.

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:

Expand Down

0 comments on commit 70f5e16

Please sign in to comment.