copyWith method
Creates a new instance of AddressObject with optional modifications.
Implementation
AddressObject copyWith({
String? hash,
String? custom,
double? balance,
int? score,
int? lastOP,
bool? isLocked,
double? incoming,
double? outgoing,
}) {
return AddressObject(
hash: hash ?? this.hash,
publicKey: this.publicKey,
privateKey: this.privateKey,
custom: custom ?? this.custom,
balance: balance ?? this.balance,
score: score ?? this.score,
lastOP: lastOP ?? this.lastOP,
isLocked: isLocked ?? this.isLocked,
incoming: incoming ?? this.incoming,
outgoing: outgoing ?? this.outgoing,
);
}