setSelectedAccountById method

void setSelectedAccountById(
  1. int accId
)

Set account as selected by its id

Implementation

void setSelectedAccountById(int accId) {
  int index = _accounts.indexWhere((a) => a.myAccId==accId);
  if(index != -1) _selectAccount(index);
}