updateWallet method

dynamic updateWallet({
  1. required Wallet wallet,
  2. required int accountId,
})

Implementation

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