UniversalFileImage constructor

const UniversalFileImage(
  1. String url, {
  2. Key? key,
  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 = BoxFit.cover,
  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. Widget? loadStateChanged(
    1. ExtendedImageState
    )?,
  18. BoxShape shape = BoxShape.rectangle,
  19. BoxBorder? border,
  20. BorderRadius? borderRadius,
  21. Clip clipBehavior = Clip.antiAlias,
  22. bool enableLoadState = true,
  23. BeforePaintImage? beforePaintImage,
  24. AfterPaintImage? afterPaintImage,
  25. ExtendedImageMode mode = ExtendedImageMode.none,
  26. bool enableMemoryCache = true,
  27. bool clearMemoryCacheIfFailed = true,
  28. void onDoubleTap(
    1. ExtendedImageGestureState
    )?,
  29. GestureConfig initGestureConfigHandler(
    1. ExtendedImageState
    )?,
  30. bool enableSlideOutPage = false,
  31. BoxConstraints? constraints,
  32. CancellationToken? cancelToken,
  33. int retries = 3,
  34. Duration? timeLimit,
  35. Map<String, String>? headers,
  36. bool cache = true,
  37. double scale = 1.0,
  38. Duration timeRetry = const Duration(milliseconds: 100),
  39. Key? extendedImageEditorKey,
  40. EditorConfig? initEditorConfigHandler(
    1. ExtendedImageState?
    )?,
  41. Widget heroBuilderForSlidingPage(
    1. Widget
    )?,
  42. bool clearMemoryCacheWhenDispose = false,
  43. bool handleLoadingProgress = false,
  44. Key? extendedImageGestureKey,
  45. int? cacheWidth,
  46. int? cacheHeight,
  47. bool isAntiAlias = false,
  48. String? cacheKey,
  49. bool printError = true,
  50. double? compressionRatio,
  51. int? maxBytes,
  52. bool cacheRawData = false,
  53. String? imageCacheName,
  54. Duration? cacheMaxAge,
  55. EdgeInsets layoutInsets = EdgeInsets.zero,
  56. Widget? placeholder,
  57. Widget? errorPlaceholder,
  58. bool allowDrawingOutsideViewBox = false,
  59. ColorFilter? colorFilter,
  60. Client? httpClient,
  61. SvgTheme? theme,
  62. VoidCallback? onTap,
  63. double? fixedWidth,
  64. double? fixedHeight,
  65. Widget placeholderBuilder(
    1. BuildContext
    )?,
})

Implementation

const UniversalFileImage(
  this.url, {
  super.key,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.width,
  this.height,
  this.color,
  this.opacity,
  this.colorBlendMode,
  this.fit = BoxFit.cover,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.centerSlice,
  this.matchTextDirection = false,
  this.gaplessPlayback = false,
  this.filterQuality = FilterQuality.low,
  this.loadStateChanged,
  this.shape = BoxShape.rectangle,
  this.border,
  this.borderRadius,
  this.clipBehavior = Clip.antiAlias,
  this.enableLoadState = true,
  this.beforePaintImage,
  this.afterPaintImage,
  this.mode = ExtendedImageMode.none,
  this.enableMemoryCache = true,
  this.clearMemoryCacheIfFailed = true,
  this.onDoubleTap,
  this.initGestureConfigHandler,
  this.enableSlideOutPage = false,
  this.constraints,
  this.cancelToken,
  this.retries = 3,
  this.timeLimit,
  this.headers,
  this.cache = true,
  this.scale = 1.0,
  this.timeRetry = const Duration(milliseconds: 100),
  this.extendedImageEditorKey,
  this.initEditorConfigHandler,
  this.heroBuilderForSlidingPage,
  this.clearMemoryCacheWhenDispose = false,
  this.handleLoadingProgress = false,
  this.extendedImageGestureKey,
  this.cacheWidth,
  this.cacheHeight,
  this.isAntiAlias = false,
  this.cacheKey,
  this.printError = true,
  this.compressionRatio,
  this.maxBytes,
  this.cacheRawData = false,
  this.imageCacheName,
  this.cacheMaxAge,
  this.layoutInsets = EdgeInsets.zero,
  this.placeholder,
  this.errorPlaceholder,
  this.allowDrawingOutsideViewBox = false,
  this.colorFilter,
  this.httpClient,
  this.theme,
  this.onTap,
  this.fixedWidth,
  this.fixedHeight,
  this.placeholderBuilder,
});