image method
Implementation
Widget image(BuildContext context) {
final image = value;
if (image?.isNotEmpty == true) {
return ClipRRect(
borderRadius: borderRadius ?? BorderRadius.circular(0.0),
child: Image(
width: width,
height: height,
fit: fit,
image: _getImage(image!),
errorBuilder: (context, _, __) {
return ImagePlaceholder(
borderRadius: borderRadius,
width: width,
height: height,
icon: placeholderIcon,
);
},
),
);
}
return ImagePlaceholder(
borderRadius: borderRadius,
width: width,
height: height,
icon: placeholderIcon,
);
}