GitHub constructor

GitHub({
  1. Authentication auth = const Authentication.anonymous(),
  2. String endpoint = 'https://api.github.com',
  3. String version = '2022-11-28',
  4. Client? client,
})

Creates a new GitHub instance.

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

Implementation

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