RefreshRequest constructor Null safety

RefreshRequest(
  1. {required String clientId,
  2. String? clientSecret,
  3. required Iterable<String> scopes,
  4. required String refreshToken,
  5. required OpenIdConfiguration configuration,
  6. Map<String, String>? additionalParameters,
  7. bool autoRefresh = true}
)

Implementation

RefreshRequest({
  required String clientId,
  String? clientSecret,
  required Iterable<String> scopes,
  required String refreshToken,
  required OpenIdConfiguration configuration,
  Map<String, String>? additionalParameters,
  bool autoRefresh = true,
}) : super(
          configuration: configuration,
          clientId: clientId,
          clientSecret: clientSecret,
          grantType: "refresh_token",
          scopes: scopes,
          additionalParameters: {
            "refresh_token": refreshToken,
            ...(additionalParameters ?? {})
          });