ImagePainter constructor
const
ImagePainter({})
Create an ImagePainter that loads an image from a byte array.
The onImageLoaded
callback is called when the image is loaded.
The placeholder
widget is displayed while the image is loading.
Optionally a precachedImage
can be provided to display the image
directly without altering the calling widget between caching.
Implementation
const ImagePainter({
super.key,
required this.imageBytes,
required this.placeholder,
this.precachedImage,
this.onImageLoaded,
});