addAccount method

dynamic addAccount (Account acc)

Implementation

addAccount(Account acc) {
  if (hasAccount(acc)) return;
  accounts.add(acc);
}