CustomNetworkImage constructor
const
CustomNetworkImage({
- Key? key,
- required String url,
- bool isProfile = false,
- Widget frameBuilder(
- BuildContext,
- Widget,
- int?,
- bool,
- Widget loadingBuilder()?,
- Widget errorBuilder()?,
- String? semanticLabel,
- double? width,
- double? height,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- BoxFit? fit,
- Rect? centerSlice,
- Map<
String, String> ? headers, - int? cacheWidth,
- int? cacheHeight,
- double scale = 1.0,
- bool excludeFromSemantics = false,
- bool matchTextDirection = false,
- bool gapLessPlayback = false,
- bool isAntiAlias = false,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- 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);