CachedImageMemory constructor

const CachedImageMemory({
  1. Key? key,
  2. required String url,
  3. required MemoryImageCacheService cacheService,
  4. double? height,
  5. double? width,
  6. Widget builder(
    1. BuildContext context,
    2. Uint8List data
    )?,
  7. WidgetBuilder? loadingBuilder,
  8. Widget errorBuilder(
    1. BuildContext context,
    2. Object error
    )?,
  9. void onReady(
    1. Uint8List data
    )?,
  10. void onError(
    1. Object error
    )?,
  11. Duration fadeDuration = const Duration(milliseconds: 300),
})

Implementation

const CachedImageMemory({
  super.key,
  required this.url,
  required this.cacheService,
  this.height,
  this.width,
  this.builder,
  this.loadingBuilder,
  this.errorBuilder,
  this.onReady,
  this.onError,
  this.fadeDuration = const Duration(milliseconds: 300),
});