isMerged method Null safety

Future<bool> isMerged(
  1. RepositorySlug slug,
  2. int number
)

Implementation

Future<bool> isMerged(RepositorySlug slug, int number) {
  return github
      .request('GET', '/repos/${slug.fullName}/pulls/$number/merge')
      .then((response) {
    return response.statusCode == 204;
  });
}