peek property
Looks at the next (yet unrequested) event from the stream.
Like next except that the event is not consumed. If the next event is an error event, it stays in the queue.
Implementation
Future<T> get peek {
if (!_isClosed) {
var nextRequest = new _PeekRequest<T>();
_addRequest(nextRequest);
return nextRequest.future;
}
throw _failClosed();
}