getBankObject static method
Ülkeye ve banka koduna göre bir Bank nesnesi döndürür.
Implementation
static Bank getBankObject(Country country, String activeBankCode) {
List<Bank> bankObjectList = getBankObjectList(country)
.where((element) => element.bankCode == activeBankCode)
.toList();
Bank bankObj;
if (bankObjectList.isNotEmpty) {
bankObj = bankObjectList[0];
} else {
bankObj = Bank("", "", "");
}
return bankObj;
}