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. Animation<double>? opacity,
  9. BlendMode? colorBlendMode,
  10. BoxFit? fit,
  11. AlignmentGeometry alignment = Alignment.center,
  12. ImageRepeat repeat = ImageRepeat.noRepeat,
  13. Rect? centerSlice,
  14. bool matchTextDirection = false,
  15. bool gaplessPlayback = false,
  16. FilterQuality filterQuality = FilterQuality.low,
  17. LoadStateChanged? loadStateChanged,
  18. BoxBorder? border,
  19. BoxShape? shape,
  20. BorderRadius? borderRadius,
  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. bool isAntiAlias = false,
  38. bool handleLoadingProgress = false,
  39. 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);