listBranches method
Lists the branches of the specified repository.
API docs: https://developer.github.com/v3/repos/#list-branches
Implementation
Stream<Branch> listBranches(RepositorySlug slug) {
ArgumentError.checkNotNull(slug);
return PaginationHelper(github).objects<Map<String, dynamic>, Branch>(
'GET',
'/repos/${slug.fullName}/branches',
(i) => Branch.fromJson(i),
);
}