copyWith method
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,
);