BasicImage.network constructor

BasicImage.network(
  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. BoxShape? shape = BoxShape.rectangle,
  18. BoxBorder? border,
  19. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(2)),
  20. Clip clipBehavior = Clip.antiAlias,
  21. bool enableLoadState = true,
  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. CancellationToken? cancelToken,
  32. int retries = 3,
  33. Duration? timeLimit,
  34. Map<String, String>? headers,
  35. bool cache = true,
  36. double scale = 1.0,
  37. Duration timeRetry = const Duration(milliseconds: 100),
  38. Key? extendedImageEditorKey,
  39. InitEditorConfigHandler? initEditorConfigHandler,
  40. HeroBuilderForSlidingPage? heroBuilderForSlidingPage,
  41. bool clearMemoryCacheWhenDispose = false,
  42. bool handleLoadingProgress = false,
  43. Key? extendedImageGestureKey,
  44. int? cacheWidth,
  45. int? cacheHeight,
  46. bool isAntiAlias = false,
  47. String? cacheKey,
  48. bool printError = true,
  49. double? compressionRatio,
  50. int? maxBytes,
  51. bool cacheRawData = false,
  52. String? imageCacheName,
  53. Duration? cacheMaxAge,
  54. EdgeInsets layoutInsets = EdgeInsets.zero,
  55. Widget? failed,
  56. Widget? loading,
})

Implementation

BasicImage.network(
  String? url, {
  super.key,
  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 = true,
  super.beforePaintImage,
  super.afterPaintImage,
  super.mode = ExtendedImageMode.none,
  super.enableMemoryCache = true,
  super.clearMemoryCacheIfFailed = true,
  super.onDoubleTap,
  super.initGestureConfigHandler,
  super.enableSlideOutPage = false,
  super.constraints,
  super.cancelToken,
  super.retries = 3,
  super.timeLimit,
  super.headers,
  super.cache = true,
  super.scale = 1.0,
  super.timeRetry = const Duration(milliseconds: 100),
  super.extendedImageEditorKey,
  super.initEditorConfigHandler,
  super.heroBuilderForSlidingPage,
  super.clearMemoryCacheWhenDispose = false,
  super.handleLoadingProgress = false,
  super.extendedImageGestureKey,
  super.cacheWidth,
  super.cacheHeight,
  super.isAntiAlias = false,
  super.cacheKey,
  super.printError = true,
  super.compressionRatio,
  super.maxBytes,
  super.cacheRawData = false,
  super.imageCacheName,
  super.cacheMaxAge,
  super.layoutInsets = EdgeInsets.zero,
  Widget? failed,
  Widget? loading,
}) : super.network(url ?? 'url is null',
          loadStateChanged:
              buildLoadStateChanged(failed: failed, loading: loading));