getImg method
dynamic
getImg(
- dynamic index
Implementation
getImg(index) {
var iconImg = '';
if (index == 0) {
iconImg = R.iconRechargeService;
}
if (index == 1) {
iconImg = R.iconGameService;
}
if (index == 2) {
iconImg = R.iconAnotherService;
}
return Image.asset(iconImg,height: 44,width: 44, package: LiveSdkManager.package);
}