iconPlaceHolder method

Widget iconPlaceHolder(
  1. String v
)

Implementation

Widget iconPlaceHolder(String v){
  switch (v){
    case "DEPOSIT":
      return Image.asset("assets/money.png");
    case "SENT":
      return Image.asset("assets/sent.png");
    case "RECEIVED":
      return Image.asset("assets/received.png");
    case "CASH WITHDRAWAL":
      return Image.asset("assets/withdrawn.png");
    case "AIRTIME":
      return Image.asset("assets/money.png");
    case "SAVINGS":
    case "SAVING":
      return Image.asset("assets/savings.png");
    case "CREDITED":
    case "PURCHASED":
    case "PURCHASE":
    case "CREDIT":
      return Image.asset("assets/sent.png");
    case "LOAN DUE":
    case "LOAN":
    case "LOAN REQUEST":
    case "LOAN PAYMENT":
      return Image.asset("assets/received.png");
    default:
      return Image.asset("assets/money.png");
  }
}