fetchLocalImage function
Implementation
Widget fetchLocalImage(File? file, {double width = 48, double height = 48}) {
return file == null
? Image.asset(
Utils.getImgPath(commonConfig.defaultLocalImgRes),
width: width,
height: height,
fit: BoxFit.cover,
)
: Image.file(file, fit: BoxFit.cover, width: width, height: height);
}