listCollaborators method

Stream<Collaborator> listCollaborators(
  1. RepositorySlug slug
)

Lists the users that have access to the repository identified by slug.

API docs: https://developer.github.com/v3/repos/collaborators/#list

Implementation

Stream<Collaborator> listCollaborators(RepositorySlug slug) {
  ArgumentError.checkNotNull(slug);
  return PaginationHelper(github).objects<Map<String, dynamic>, Collaborator>(
    'GET',
    '/repos/${slug.fullName}/collaborators',
    (json) => Collaborator.fromJson(json),
  );
}