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