cachedImageForItem function
Implementation
Widget cachedImageForItem(String url,
{double? height, double? width, BoxFit? boxFit}) =>
CachedNetworkImage(
imageUrl: url,
height: height,
width: width,
fit: boxFit,
placeholder: (context, url) => const LoadingWidget(),
errorWidget: (context, url, error) => const Icon(
Icons.error,
));