iconReturn static method

String iconReturn(
  1. String catName
)

Implementation

static String iconReturn(String catName) {
  var imgPath = "";
  if (catName == "restaurant" || catName == "bar" || catName == "cafe" || catName == "fast food") {
    imgPath = "assets/symbols/restro.png";
  } else if (catName == "clothing") {
    imgPath = "assets/symbols/clothing.png";
  } else if (catName == "bar") {
    imgPath = "assets/symbols/restro.png";
  } else if (catName == "travel & books") {
    imgPath = "assets/symbols/travelbook.png";
  } else if (catName == "electronics") {
    //to be updated
    imgPath = "assets/symbols/travelbook.png";
  } else if (catName == "gifts & toys") {
    imgPath = "assets/symbols/gift.png";
  } else if (catName == "atm") {
    imgPath = "assets/symbols/atm.png";
  } else if (catName == "Currency exchange") {
    imgPath = "assets/symbols/currencyexchange.png";
  } else if (catName == "Lounge") {
    imgPath = "assets/symbols/lounge.png";
  } else if (catName == "Telephone") {
    imgPath = "assets/symbols/telephone.png";
  } else if (catName == "Children's play area") {
    imgPath = "assets/symbols/playarea.png";
  } else if (catName == "Ticket counter") {
    imgPath = "assets/symbols/ticketcounter.png";
  } else if (catName == "Tourism") {
    imgPath = "assets/symbols/tourism.png";
  } else if (catName == "Post office") {
    imgPath = "assets/symbols/postoffice.png";
  } else if (catName == "Baby changing room ") {
    imgPath = "assets/symbols/babychange.png";
  } else if (catName == "Baggage claim") {
    imgPath = "assets/symbols/baggageclaim.png";
  } else if (catName == "bus") {
    imgPath = "assets/symbols/bus.png";
  } else if (catName == "car") {
    imgPath = "assets/symbols/car.png";
  } else if (catName == "Check-in counters") {
    imgPath = "assets/symbols/checkin.png";
  } else if (catName == "Customs") {
    imgPath = "assets/symbols/customs.png";
  } else if (catName == "Escalator") {
    imgPath = "assets/symbols/escalator.png";
  } else if (catName == "Exit") {
    imgPath = "assets/symbols/exit.png";
  } else if (catName == "Gates") {
    //TO BE CHANGED
    imgPath = "assets/symbols/postoffice.png";
  } else if (catName == "FIDS") {
    //TO BE CHANGED
    imgPath = "assets/symbols/postoffice.png";
  } else if (catName == "Lift") {
    imgPath = "assets/symbols/lift.png";
  } else if (catName == "Lost and found") {
    imgPath = "assets/symbols/lostandfound.png";
  } else if (catName == "Metro") {
    imgPath = "assets/symbols/metro.png";
  } else if (catName == "Passport control") {
    imgPath = "assets/symbols/passport.png";
  } else if (catName == "Charging") {
    imgPath = "assets/symbols/charging.png";
  } else if (catName == "Prayer room") {
    imgPath = "assets/symbols/prayer.png";
  } else if (catName == "security screening") {
    imgPath = "assets/symbols/security.png";
  } else if (catName == "smoking room") {
    imgPath = "assets/symbols/smoking.png";
  } else if (catName == "staircase") {
    imgPath = "assets/symbols/stairs.png";
  } else if (catName == "toilet") {
    imgPath = "assets/symbols/charging.png";
  } else if (catName == "train") {
    imgPath = "assets/symbols/train.png";
  } else if (catName == "transit") {
    imgPath = "assets/symbols/transit.png";
  } else if (catName == "drinking water") {
    //TO BE CHANGEd
    imgPath = "assets/symbols/charging.png";
  } else if (catName == "emergency exit") {
    imgPath = "assets/symbols/exit.png";
  } else if (catName == "medical") {
    imgPath = "assets/symbols/medical.png";
  } else if (catName == "female toilet") {
    imgPath = "assets/symbols/femaletoilet.png";
  } else if (catName == "male toilet") {
    imgPath = "assets/symbols/toilet.png";
  } else if (catName == "disabled toilet") {
    imgPath = "assets/symbols/disabled.png";
  } else if (catName == "Help desk") {
    imgPath = "assets/symbols/helpdesk.png";
  } else {
    imgPath = "assets/symbols/helpdesk.png";
    // return "assets/symbols/neww.png";
  }

  return imgPath;
}