copyWith method

KumihoCredentials copyWith({
  1. String? apiKey,
  2. String? email,
  3. String? refreshToken,
  4. String? idToken,
  5. int? expiresAt,
  6. String? projectId,
  7. String? controlPlaneToken,
  8. int? cpExpiresAt,
})

Creates a copy with updated fields.

Implementation

KumihoCredentials copyWith({
  String? apiKey,
  String? email,
  String? refreshToken,
  String? idToken,
  int? expiresAt,
  String? projectId,
  String? controlPlaneToken,
  int? cpExpiresAt,
}) {
  return KumihoCredentials(
    apiKey: apiKey ?? this.apiKey,
    email: email ?? this.email,
    refreshToken: refreshToken ?? this.refreshToken,
    idToken: idToken ?? this.idToken,
    expiresAt: expiresAt ?? this.expiresAt,
    projectId: projectId ?? this.projectId,
    controlPlaneToken: controlPlaneToken ?? this.controlPlaneToken,
    cpExpiresAt: cpExpiresAt ?? this.cpExpiresAt,
  );
}