ImagePlaceholderView constructor

const ImagePlaceholderView({
  1. Key? key,
  2. bool isError = false,
  3. ImageStyle style = const ImageStyle(),
  4. String? blurHash,
})

Creates an ImagePlaceholderView widget.

Either blurHash or thumbHash can be provided to generate a placeholder. If isError is true, the placeholder will be shown with reduced opacity and a warning icon will be displayed.

Implementation

const ImagePlaceholderView(
    {super.key,
    this.isError = false,
    this.style = const ImageStyle(),
    this.blurHash});