GitHub constructor

GitHub({
  1. Authentication? auth,
  2. String endpoint = 'https://api.github.com',
  3. Client? client,
})

Creates a new GitHub instance.

endpoint is the api endpoint to use auth is the authentication information

Implementation

GitHub({
  Authentication? auth,
  this.endpoint = 'https://api.github.com',
  http.Client? client,
})  : auth = auth ?? Authentication.anonymous(),
      client = client ?? http.Client();