CustomNetworkImage constructor

const CustomNetworkImage({
  1. Key? key,
  2. required String url,
  3. bool isProfile = false,
  4. Widget frameBuilder(
    1. BuildContext,
    2. Widget,
    3. int?,
    4. bool,
    )?,
  5. Widget loadingBuilder(
    1. BuildContext,
    2. Widget,
    3. ImageChunkEvent?
    )?,
  6. Widget errorBuilder(
    1. BuildContext,
    2. Object,
    3. StackTrace?
    )?,
  7. String? semanticLabel,
  8. double? width,
  9. double? height,
  10. Color? color,
  11. Animation<double>? opacity,
  12. BlendMode? colorBlendMode,
  13. BoxFit? fit,
  14. Rect? centerSlice,
  15. Map<String, String>? headers,
  16. int? cacheWidth,
  17. int? cacheHeight,
  18. double scale = 1.0,
  19. bool excludeFromSemantics = false,
  20. bool matchTextDirection = false,
  21. bool gapLessPlayback = false,
  22. bool isAntiAlias = false,
  23. AlignmentGeometry alignment = Alignment.center,
  24. ImageRepeat repeat = ImageRepeat.noRepeat,
  25. FilterQuality filterQuality = FilterQuality.low,
})

Implementation

const CustomNetworkImage({
  Key? key,
  required this.url,
  this.isProfile = false,
  this.frameBuilder,
  this.loadingBuilder,
  this.errorBuilder,
  this.semanticLabel,
  this.width,
  this.height,
  this.color,
  this.opacity,
  this.colorBlendMode,
  this.fit,
  this.centerSlice,
  this.headers,
  this.cacheWidth,
  this.cacheHeight,
  this.scale = 1.0,
  this.excludeFromSemantics = false,
  this.matchTextDirection = false,
  this.gapLessPlayback = false,
  this.isAntiAlias = false,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.filterQuality = FilterQuality.low,
}) : super(key: key);