consume method
Consumes unread events and reports whether any existed.
Implementation
bool consume() {
final had = hasUnread;
_cursor = _channel._end;
return had;
}
Consumes unread events and reports whether any existed.
bool consume() {
final had = hasUnread;
_cursor = _channel._end;
return had;
}