hasAccount method

bool hasAccount (Account target)

Implementation

bool hasAccount(Account target) {
  return accounts.indexWhere((acc) => acc.address == target.address) != -1;
}