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