OpenableImage constructor

OpenableImage({
  1. Key? key,
  2. required String displayedImage,
  3. String? placeholderImage,
  4. String? imageCaptioning,
  5. TextStyle? captioningStyle,
  6. bool disableOpen = false,
})

Implementation

OpenableImage({
  super.key,
  required this.displayedImage,
  this.placeholderImage,
  this.imageCaptioning,
  this.captioningStyle,
  this.disableOpen = false,
}) {
  final String? placeholder = placeholderImage;
  ourMainImage = FadeInImage(
    placeholder: placeholder == null
        ? MemoryImage(_transparentPixel)
        : AssetImage(placeholder),
    image: AssetImage(displayedImage),
  );
}