img function

Element img({
  1. String? src,
  2. String? alt,
  3. String? id,
  4. String? className,
  5. Map<String, dynamic>? attributes,
})

Implementation

Element img({
  String? src,
  String? alt,
  String? id,
  String? className,
  Map<String, dynamic>? attributes,
}) => h(
  'img',
  id: id,
  className: className,
  attributes: {'src': src, 'alt': alt, ...?attributes},
  selfClosing: true,
);