copyWith method

OAuthTokens copyWith({
  1. String? accessToken,
  2. String? refreshToken,
  3. int? expiresAt,
  4. List<String>? scopes,
  5. String? subscriptionType,
  6. String? rateLimitTier,
})

Implementation

OAuthTokens copyWith({
  String? accessToken,
  String? refreshToken,
  int? expiresAt,
  List<String>? scopes,
  String? subscriptionType,
  String? rateLimitTier,
}) {
  return OAuthTokens(
    accessToken: accessToken ?? this.accessToken,
    refreshToken: refreshToken ?? this.refreshToken,
    expiresAt: expiresAt ?? this.expiresAt,
    scopes: scopes ?? this.scopes,
    subscriptionType: subscriptionType ?? this.subscriptionType,
    rateLimitTier: rateLimitTier ?? this.rateLimitTier,
  );
}