copyWith method

Wallet copyWith({
  1. String? walletId,
  2. WalletBalance? balance,
  3. WalletNumbers? numbers,
  4. String? recipientId,
})

Implementation

Wallet copyWith(
    {String? walletId,
    WalletBalance? balance,
    WalletNumbers? numbers,
    String? recipientId}) {
  return Wallet(
      walletId: walletId ?? this.walletId,
      balance: balance ?? this.balance,
      numbers: numbers ?? this.numbers,
      recipientId: recipientId ?? this.recipientId);
}