OAuth2Flow constructor Null safety

OAuth2Flow(
  1. String clientId,
  2. String clientSecret,
  3. {String? redirectUri,
  4. List<String> scopes = const [],
  5. String? state,
  6. GitHub? github,
  7. String baseUrl = 'https://github.com/login/oauth'}
)

Implementation

OAuth2Flow(this.clientId, this.clientSecret,
    {String? redirectUri,
    this.scopes = const [],
    this.state,
    this.github,
    this.baseUrl = 'https://github.com/login/oauth'})
    : redirectUri =
          redirectUri == null ? null : _checkRedirectUri(redirectUri);