getImageWidget method
Implementation
Widget getImageWidget(String icon, double width, double height) {
if (icon.contains("http")) {
return Image.network(icon, width: width, height: height);
} else {
return Image.asset(icon, width: width, height: height);
}
}