copyWith method

EncryptedCredentials copyWith({
  1. String? data,
  2. String? hash,
  3. String? secret,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

EncryptedCredentials copyWith({
  String? data,
  String? hash,
  String? secret,
}) =>
    EncryptedCredentials(
      data: data ?? this.data,
      hash: hash ?? this.hash,
      secret: secret ?? this.secret,
    );