BaseImage.memory constructor

BaseImage.memory(
  1. Uint8List bytes, {
  2. Key? key,
  3. double scale = 1.0,
  4. String? semanticLabel,
  5. bool excludeFromSemantics = false,
  6. double? width,
  7. double? height,
  8. Color? color,
  9. Animation<double>? opacity,
  10. BlendMode? colorBlendMode,
  11. BoxFit? fit = BoxFit.cover,
  12. AlignmentGeometry alignment = Alignment.center,
  13. ImageRepeat repeat = ImageRepeat.noRepeat,
  14. Rect? centerSlice,
  15. bool matchTextDirection = false,
  16. bool gaplessPlayback = false,
  17. FilterQuality filterQuality = FilterQuality.low,
  18. BoxShape? shape = BoxShape.rectangle,
  19. BoxBorder? border,
  20. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(2)),
  21. Clip clipBehavior = Clip.antiAlias,
  22. bool enableLoadState = false,
  23. BeforePaintImage? beforePaintImage,
  24. AfterPaintImage? afterPaintImage,
  25. ExtendedImageMode mode = ExtendedImageMode.none,
  26. bool enableMemoryCache = true,
  27. bool clearMemoryCacheIfFailed = true,
  28. DoubleTap? onDoubleTap,
  29. InitGestureConfigHandler? initGestureConfigHandler,
  30. bool enableSlideOutPage = false,
  31. BoxConstraints? constraints,
  32. Key? extendedImageEditorKey,
  33. InitEditorConfigHandler? initEditorConfigHandler,
  34. HeroBuilderForSlidingPage? heroBuilderForSlidingPage,
  35. bool clearMemoryCacheWhenDispose = false,
  36. Key? extendedImageGestureKey,
  37. int? cacheWidth,
  38. int? cacheHeight,
  39. bool isAntiAlias = false,
  40. double? compressionRatio,
  41. int? maxBytes,
  42. bool cacheRawData = false,
  43. String? imageCacheName,
  44. EdgeInsets layoutInsets = EdgeInsets.zero,
  45. Widget? failed,
  46. Widget? loading,
})

Implementation

BaseImage.memory(
  super.bytes, {
  super.key,
  super.scale = 1.0,
  super.semanticLabel,
  super.excludeFromSemantics = false,
  super.width,
  super.height,
  super.color,
  super.opacity,
  super.colorBlendMode,
  super.fit = BoxFit.cover,
  super.alignment = Alignment.center,
  super.repeat = ImageRepeat.noRepeat,
  super.centerSlice,
  super.matchTextDirection = false,
  super.gaplessPlayback = false,
  super.filterQuality = FilterQuality.low,
  super.shape = BoxShape.rectangle,
  super.border,
  super.borderRadius = const BorderRadius.all(Radius.circular(2)),
  super.clipBehavior = Clip.antiAlias,
  super.enableLoadState = false,
  super.beforePaintImage,
  super.afterPaintImage,
  super.mode = ExtendedImageMode.none,
  super.enableMemoryCache = true,
  super.clearMemoryCacheIfFailed = true,
  super.onDoubleTap,
  super.initGestureConfigHandler,
  super.enableSlideOutPage = false,
  super.constraints,
  super.extendedImageEditorKey,
  super.initEditorConfigHandler,
  super.heroBuilderForSlidingPage,
  super.clearMemoryCacheWhenDispose = false,
  super.extendedImageGestureKey,
  super.cacheWidth,
  super.cacheHeight,
  super.isAntiAlias = false,
  super.compressionRatio,
  super.maxBytes,
  super.cacheRawData = false,
  super.imageCacheName,
  super.layoutInsets = EdgeInsets.zero,
  Widget? failed,
  Widget? loading,
}) : super.memory(
          loadStateChanged:
              buildLoadStateChanged(failed: failed, loading: loading));