addAccount method

Future<Account> addAccount (
  1. Account x,
  2. {bool store: true}
)
override

Each Address in Wallet is associated with one Account.

Implementation

Future<Account> addAccount(Account x, {bool store = true}) async {
  accounts[x.id] = x;
  activeAccountId = x.id;
  if (store) await _storeAccount(x);
  return x;
}