loadImage static method
Implementation
static Widget loadImage(String? imgPath,
{Key? key,BorderRadius radius:BorderRadius.zero,String placeholder : "none",
double? width, double? height, BoxFit fit: BoxFit.cover,String? package}){
// LogUtil.e('loadImage-->imgPath==$imgPath');
if((imgPath??'').startsWith('http')){
return loadNetworkImage(imgPath,key:key,width: width,height: height,radius: radius,fit: fit,placeholder: placeholder);
}else{
return loadAssetImage(imgPath,key: key,width: width,height: height,radius: radius,fit: fit,package: package);
}
}