cachedImageForItem function

Widget cachedImageForItem(
  1. String url, {
  2. double? height,
  3. double? width,
  4. BoxFit? boxFit,
})

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,
            ));