imageElement function

HTMLElement imageElement(
  1. String source,
  2. int width,
  3. int height, [
  4. void onClick()?,
])

Implementation

web.HTMLElement imageElement(String source, int width, int height,
        [void Function()? onClick]) =>
    web.HTMLImageElement()
      ..width = width
      ..height = height
      ..onclick = onClick?.toJS
      ..src = source;