Iframe constructor

Iframe({
  1. required String src,
  2. String? title,
  3. String? width,
  4. String? height,
  5. String? className,
  6. Map<String, Object?> props = const {},
  7. Map<String, Object?> style = const {},
  8. DartStyle? dartStyle,
})

Creates an iframe element with source URL, title, and styling.

Implementation

Iframe({
  required String src,
  String? title,
  String? width,
  String? height,
  String? className,
  Map<String, Object?> props = const {},
  Map<String, Object?> style = const {},
  DartStyle? dartStyle,
}) : super(
        'iframe',
        props: mergeComponentProps(
          {
            ...props,
            'src': src,
            if (title != null) 'title': title,
            if (width != null) 'width': width,
            if (height != null) 'height': height,
          },
          className: className,
          dartStyle: dartStyle,
          style: style,
        ),
      );