getImage function
dynamic
getImage({})
Implementation
getImage({ String? pathImage, IconData? icon, bool isImgOnline=false, Color? color, double? height }) {
height ??= 55;
if( pathImage!=null ) {
if (isImgOnline) {
return Image.network(pathImage, height: height, color: color);
} else {
return Image.asset(pathImage, height: height, color: color);
}
}
if( icon!=null ) {
return Icon(icon, size: height, color: color);
}
}