ImagePlaceholderView constructor
const
ImagePlaceholderView({
- Key? key,
- bool isError = false,
- ImageStyle style = const ImageStyle(),
- String? blurHash,
Creates an ImagePlaceholderView widget for loading or error placeholders.
The isError flag triggers reduced opacity and a red warning icon overlay.
blurHash provides the string for generating the blurred preview; omit for empty container.
style applies sizing, fit, and blending to the placeholder image.
Initialization conditionally builds the BlurHash image or empty container, with error visuals animated in for smooth feedback.
Implementation
const ImagePlaceholderView(
{super.key,
this.isError = false,
this.style = const ImageStyle(),
this.blurHash});