GitHub constructor
GitHub({
- Authentication auth = const Authentication.anonymous(),
- String endpoint = 'https://api.github.com',
- String version = '2022-11-28',
- 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();