imgPlaceHolder method

Widget imgPlaceHolder(
  1. String v
)

Implementation

Widget imgPlaceHolder(String v){
  switch (v){
    case "KCB BANK":
    case "KCB":
      return Image.asset("assets/kcb.png");
    case "CoopBank":
    case "COOPBANK":
    case "COOP BANK":
      return Image.asset("assets/coopbank.jpeg");
    case "EQUITY BANK":
      return Image.asset("assets/equity.png");
    case "MPESA":
      return Image.asset("assets/mpesa.jpg");
    case "FAMILY BANK":
    case "FAMILYBANK":
      return Image.asset("assets/familybank.png");
    case "ZIMELE_UT":
      return Image.asset("assets/zimele.png");
    default:
      return Image.asset("assets/money.png");
  }
}