updateWallet method
Implementation
updateWallet({required Wallet wallet, required int accountId}) {
state = state.copyWith(
wallets: {
...state.wallets,
wallet.id: wallet,
},
selected: (accountId: accountId, walletId: wallet.id),
);
}