BasicImage.memory constructor
BasicImage.memory(
- Uint8List bytes, {
- Key? key,
- double scale = 1.0,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- double? width,
- double? height,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- BoxFit? fit = BoxFit.cover,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- FilterQuality filterQuality = FilterQuality.low,
- BoxShape? shape = BoxShape.rectangle,
- BoxBorder? border,
- BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(2)),
- Clip clipBehavior = Clip.antiAlias,
- bool enableLoadState = false,
- BeforePaintImage? beforePaintImage,
- AfterPaintImage? afterPaintImage,
- ExtendedImageMode mode = ExtendedImageMode.none,
- bool enableMemoryCache = true,
- bool clearMemoryCacheIfFailed = true,
- DoubleTap? onDoubleTap,
- InitGestureConfigHandler? initGestureConfigHandler,
- bool enableSlideOutPage = false,
- BoxConstraints? constraints,
- Key? extendedImageEditorKey,
- InitEditorConfigHandler? initEditorConfigHandler,
- HeroBuilderForSlidingPage? heroBuilderForSlidingPage,
- bool clearMemoryCacheWhenDispose = false,
- Key? extendedImageGestureKey,
- int? cacheWidth,
- int? cacheHeight,
- bool isAntiAlias = false,
- double? compressionRatio,
- int? maxBytes,
- bool cacheRawData = false,
- String? imageCacheName,
- EdgeInsets layoutInsets = EdgeInsets.zero,
- Widget? failed,
- Widget? loading,
Implementation
BasicImage.memory(
Uint8List 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(bytes,
loadStateChanged:
buildLoadStateChanged(failed: failed, loading: loading));