IFrame constructor

IFrame({
  1. String? src,
  2. String? title,
  3. int? width,
  4. int? height,
  5. String? className,
  6. String? style,
  7. Map<String, String>? attrs,
  8. Map<String, BloomEventHandler>? on,
})

Creates an <iframe> element descriptor with src, title, and dimension shorthands.

Implementation

IFrame({String? src, String? title, int? width, int? height, super.className, super.style, Map<String, String>? attrs, super.on})
    : super('iframe', attrs: _mergeAttrs(attrs, {
        if (src != null) 'src': src,
        if (title != null) 'title': title,
        if (width != null) 'width': '$width',
        if (height != null) 'height': '$height',
      }));