copyWith method

JWKPublicKey copyWith({
  1. String? alg,
  2. String? crv,
  3. String? kid,
  4. String? kty,
  5. String? use,
  6. String? x,
  7. String? y,
  8. int? createdAt,
  9. int? expiredAt,
})

Implementation

JWKPublicKey copyWith(
    {String? alg,
    String? crv,
    String? kid,
    String? kty,
    String? use,
    String? x,
    String? y,
    int? createdAt,
    int? expiredAt}) {
  return JWKPublicKey(
      alg: alg ?? this.alg,
      crv: crv ?? this.crv,
      kid: kid ?? this.kid,
      kty: kty ?? this.kty,
      use: use ?? this.use,
      x: x ?? this.x,
      y: y ?? this.y,
      createdAt: createdAt ?? this.createdAt,
      expiredAt: expiredAt ?? this.expiredAt);
}