unread method

Stream unread({
  1. int? limit,
  2. bool markRead = false,
})

Returns a Stream of Comment and/or Message objects that have not yet been read.

markRead specifies whether or not to mark the inbox as having no new messages.

Implementation

Stream unread({int? limit, bool markRead = false}) {
  final params = {
    'mark': markRead.toString(),
  };
  return ListingGenerator.generator(reddit, apiPath['unread'],
      params: params, limit: limit);
}