getBankObject static method

Bank getBankObject(
  1. Country country,
  2. String activeBankCode
)

Ü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;
}