getBranch method
Fetches the specified branch.
Implementation
Future<Branch> getBranch(RepositorySlug slug, String branch) async {
ArgumentError.checkNotNull(slug);
ArgumentError.checkNotNull(branch);
return github.getJSON<Map<String, dynamic>, Branch>(
'/repos/${slug.fullName}/branches/$branch',
convert: Branch.fromJson,
);
}