ExtendedImage constructor

ExtendedImage({
  1. Key? key,
  2. required ImageProvider<Object> image,
  3. String? semanticLabel,
  4. bool excludeFromSemantics = false,
  5. double? width,
  6. double? height,
  7. Color? color,
  8. BlendMode? colorBlendMode,
  9. BoxFit? fit,
  10. Alignment alignment = Alignment.center,
  11. ImageRepeat repeat = ImageRepeat.noRepeat,
  12. Rect? centerSlice,
  13. bool matchTextDirection = false,
  14. bool gaplessPlayback = false,
  15. FilterQuality filterQuality = FilterQuality.low,
  16. LoadStateChanged? loadStateChanged,
  17. BoxBorder? border,
  18. BoxShape? shape,
  19. BorderRadius? borderRadius,
  20. Clip clipBehavior = Clip.antiAlias,
  21. bool enableLoadState = false,
  22. BeforePaintImage? beforePaintImage,
  23. AfterPaintImage? afterPaintImage,
  24. ExtendedImageMode mode = ExtendedImageMode.none,
  25. bool enableMemoryCache = true,
  26. bool clearMemoryCacheIfFailed = true,
  27. DoubleTap? onDoubleTap,
  28. InitGestureConfigHandler? initGestureConfigHandler,
  29. bool enableSlideOutPage = false,
  30. BoxConstraints? constraints,
  31. Key? extendedImageEditorKey,
  32. InitEditorConfigHandler? initEditorConfigHandler,
  33. HeroBuilderForSlidingPage? heroBuilderForSlidingPage,
  34. bool clearMemoryCacheWhenDispose = false,
  35. Key? extendedImageGestureKey,
  36. bool isAntiAlias = false,
  37. bool handleLoadingProgress = false,
})

Implementation

ExtendedImage({
  Key? key,
  required this.image,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.width,
  this.height,
  this.color,
  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,
})  : 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);