listStargazers method

Stream<User> listStargazers(
  1. RepositorySlug slug, {
  2. int perPage = 30,
})

Lists people who have starred the specified repo.

API docs: https://developer.github.com/v3/activity/starring/#list-stargazers

Implementation

Stream<User> listStargazers(RepositorySlug slug, {int perPage = 30}) {
  return PaginationHelper(github).objects('GET',
      '/repos/${slug.fullName}/stargazers', (dynamic i) => User.fromJson(i),
      params: {'per_page': perPage});
}