consume method

bool consume()

Consumes unread events and reports whether any existed.

Implementation

bool consume() {
  final had = hasUnread;
  _cursor = _channel._end;
  return had;
}