dispose method Null safety

void dispose()

Disposes of this GitHub Instance. No other methods on this instance should be called after this method is called.

Implementation

void dispose() {
  // Destroy the Authentication Information
  // This is needed for security reasons.
  auth = null;

  // Closes the HTTP Client
  client.close();
}