showDialogImage function

void showDialogImage(
  1. String src
)

Shows an image (src) dialog.

src The image source.

Implementation

void showDialogImage(String src) {
  var img = ImageElement()
    // ignore: unsafe_html
    ..src = src
    ..style.width = '95%'
    ..style.height = 'auto'
    ..style.objectFit = 'contain';

  showDialogElement(img);
}