from static method

Component from({
  1. required String src,
  2. String? alt,
  3. String? caption,
  4. bool zoom = false,
  5. Key? key,
})

Implementation

static Component from({required String src, String? alt, String? caption, bool zoom = false, Key? key}) {
  if (zoom) {
    return ZoomableImage(src: src, alt: alt, caption: caption, key: key);
  }
  return _Image(src: src, alt: alt, caption: caption, key: key);
}