unstar method

Future unstar(
  1. RepositorySlug slug
)

Unstars the specified repository for the currently authenticated user.

API docs: https://developer.github.com/v3/activity/starring/#unstar-a-repository

Implementation

Future unstar(RepositorySlug slug) {
  return github
      .request(
        'DELETE',
        '/user/starred/${slug.fullName}',
        headers: {'Content-Length': '0'},
      )
      .then((response) {
        return null;
      });
}