stream method

Stream<Member> stream({
  1. Snowflake? after,
  2. Snowflake? before,
  3. int? pageSize,
})

Same as list, but has no limit on the number of members returned.

If after is set, only entities whose ID is after it will be returned. If before is set, only entities whose ID is before it will be returned.

pageSize can be set to control the limit parameter of the underlying requests to the paginated endpoint. Most users will want to leave this unset and default to the maximum page size.

Implementation

Stream<Member> stream({
  Snowflake? after,
  Snowflake? before,
  int? pageSize,
}) =>
    streamPaginatedEndpoint(
      ({after, before, limit}) => list(after: after, limit: limit),
      extractId: (member) => member.id,
      before: before,
      after: after,
      pageSize: pageSize,
      order: StreamOrder.oldestFirst,
    );