copyWith method Null safety

Wallet copyWith(
  1. {String? privateKey,
  2. String? address}
)

Implementation

Wallet copyWith({
  String? privateKey,
  String? address,
}) =>
    Wallet(
      privateKey: privateKey ?? this.privateKey,
      address: address ?? this.address,
    );