listCollaborators method
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',
Collaborator.fromJson,
);
}