Image constructor

Image({
  1. required String src,
  2. String? className,
  3. String? id,
  4. Map<String, dynamic>? style,
  5. Map<String, String>? attributes,
  6. String? alt,
  7. String? width,
  8. String? height,
  9. void onLoad(
    1. Event
    )?,
  10. void onError(
    1. Event
    )?,
  11. void onAbort(
    1. Event
    )?,
  12. String tag = "img",
})

Image component.

The src parameter is used to determine the source of the image.

Implementation

Image({
  required super.src,
  super.className,
  super.id,
  super.style,
  super.attributes,
  super.alt,
  super.width,
  super.height,
  super.onLoad,
  super.onError,
  super.onAbort,
  super.tag = "img",
});