ExtendedImage constructor
ExtendedImage({
- Key? key,
- required ImageProvider<
Object> image, - String? semanticLabel,
- bool excludeFromSemantics = false,
- double? width,
- double? height,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- BoxFit? fit,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- FilterQuality filterQuality = FilterQuality.low,
- LoadStateChanged? loadStateChanged,
- BoxBorder? border,
- BoxShape? shape,
- BorderRadius? borderRadius,
- 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,
- bool isAntiAlias = false,
- bool handleLoadingProgress = false,
- EdgeInsets layoutInsets = EdgeInsets.zero,
Implementation
ExtendedImage({
Key? key,
required this.image,
this.semanticLabel,
this.excludeFromSemantics = false,
this.width,
this.height,
this.color,
this.opacity,
this.colorBlendMode,
this.fit,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.centerSlice,
this.matchTextDirection = false,
this.gaplessPlayback = false,
this.filterQuality = FilterQuality.low,
this.loadStateChanged,
this.border,
this.shape,
this.borderRadius,
this.clipBehavior = Clip.antiAlias,
this.enableLoadState = false,
this.beforePaintImage,
this.afterPaintImage,
this.mode = ExtendedImageMode.none,
this.enableMemoryCache = true,
this.clearMemoryCacheIfFailed = true,
this.onDoubleTap,
this.initGestureConfigHandler,
this.enableSlideOutPage = false,
BoxConstraints? constraints,
this.extendedImageEditorKey,
this.initEditorConfigHandler,
this.heroBuilderForSlidingPage,
this.clearMemoryCacheWhenDispose = false,
this.extendedImageGestureKey,
this.isAntiAlias = false,
this.handleLoadingProgress = false,
this.layoutInsets = EdgeInsets.zero,
}) : assert(constraints == null || constraints.debugAssertIsValid()),
constraints = (width != null || height != null)
? constraints?.tighten(width: width, height: height) ??
BoxConstraints.tightFor(width: width, height: height)
: constraints,
super(key: key);