CustomImage.network constructor
CustomImage.network(})
A custom image that handles errors for you.
Uses a NetworkImage.
Implementation
CustomImage.network(
String? source, {
super.key,
this.alignment = _defaultAlignment,
this.color,
this.errorWidget = _defaultErrorWidget,
this.fit = _defaultBoxFit,
ImageLoadingBuilder? loadingBuilder,
this.opacity = _defaultOpacity,
this.scale = _defaultScale,
}) : imageProvider = Image.network(
source ?? '',
errorBuilder: (_, __, ___) => errorWidget!,
loadingBuilder: loadingBuilder,
).image;