object<L, V> function

DomElement<L, V> object<L, V>({
  1. String? key,
  2. List<String>? classes,
  3. Map<String, String>? attributes,
  4. Map<String, String>? styles,
  5. String? accesskey,
  6. String? autocapitalize,
  7. String? border,
  8. String? contenteditable,
  9. String? data,
  10. String? dir,
  11. String? draggable,
  12. String? form,
  13. String? height,
  14. String? hidden,
  15. String? id,
  16. String? itemprop,
  17. String? lang,
  18. String? name,
  19. String? role,
  20. String? slot,
  21. String? spellcheck,
  22. String? tabindex,
  23. String? title,
  24. String? translate,
  25. String? type,
  26. String? usemap,
  27. String? width,
  28. Map<String, DomEventFn<L, V>>? events,
  29. DomLifecycleEventFn<L>? onCreate,
  30. DomLifecycleEventFn<L>? onUpdate,
  31. DomLifecycleEventFn<L>? onRemove,
  32. Iterable<DomNode<L, V>>? children,
  33. DomNode<L, V>? child,
  34. String? text,
})

Represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.

Implementation

DomElement<L, V> object<L, V>({
  String? key,
  List<String>? classes,
  Map<String, String>? attributes,
  Map<String, String>? styles,

  /// Keyboard shortcut to activate or add focus to the element.
  String? accesskey,

  /// Sets whether input is automatically capitalized when entered by user
  String? autocapitalize,

  /// The border width.
  ///
  ///
  /// Note: This is a legacy attribute. Please use the
  /// CSS border property instead.
  String? border,

  /// Indicates whether the element's content is editable.
  String? contenteditable,

  /// Specifies the URL of the resource.
  String? data,

  /// Defines the text direction. Allowed values are ltr (Left-To-Right) or
  /// rtl (Right-To-Left)
  String? dir,

  /// Defines whether the element can be dragged.
  String? draggable,

  /// Indicates the form that is the owner of the element.
  String? form,

  /// Specifies the height of elements listed here. For all other elements,
  /// use the CSS height property.
  ///
  ///
  ///
  /// Note: In some instances, such as
  /// <div>, this is a legacy attribute, in
  /// which case the CSS height property should
  /// be used instead.
  String? height,

  /// Prevents rendering of given element, while keeping child elements, e.g.
  /// script elements, active.
  String? hidden,

  /// Often used with CSS to style a specific element. The value of this
  /// attribute must be unique.
  String? id,

  ///
  String? itemprop,

  /// Defines the language used in the element.
  String? lang,

  /// Name of the element. For example used by the server to identify the
  /// fields in form submits.
  String? name,

  /// Defines an explicit role for an element for use by assistive technologies.
  String? role,

  /// Assigns a slot in a shadow DOM shadow tree to an element.
  String? slot,

  /// Indicates whether spell checking is allowed for the element.
  String? spellcheck,

  /// Overrides the browser's default tab order and follows the one specified
  /// instead.
  String? tabindex,

  /// Text to be displayed in a tooltip when hovering over the element.
  String? title,

  /// Specify whether an element's attribute values and the values of its
  /// Text node
  /// children are to be translated when the page is localized, or whether to
  /// leave them unchanged.
  String? translate,

  /// Defines the type of the element.
  String? type,

  ///
  String? usemap,

  /// For the elements listed here, this establishes the element's width.
  ///
  ///
  /// Note: For all other instances, such as
  /// <div>, this is a legacy attribute, in
  /// which case the CSS width property should be
  /// used instead.
  String? width,
  Map<String, DomEventFn<L, V>>? events,
  DomLifecycleEventFn<L>? onCreate,
  DomLifecycleEventFn<L>? onUpdate,
  DomLifecycleEventFn<L>? onRemove,
  Iterable<DomNode<L, V>>? children,
  DomNode<L, V>? child,
  String? text,
}) {
  return DomElement<L, V>(
    'object',
    key: key,
    classes: classes,
    attributes: <String, String>{
      if (accesskey != null) 'accesskey': accesskey,
      if (autocapitalize != null) 'autocapitalize': autocapitalize,
      if (border != null) 'border': border,
      if (contenteditable != null) 'contenteditable': contenteditable,
      if (data != null) 'data': data,
      if (dir != null) 'dir': dir,
      if (draggable != null) 'draggable': draggable,
      if (form != null) 'form': form,
      if (height != null) 'height': height,
      if (hidden != null) 'hidden': hidden,
      if (id != null) 'id': id,
      if (itemprop != null) 'itemprop': itemprop,
      if (lang != null) 'lang': lang,
      if (name != null) 'name': name,
      if (role != null) 'role': role,
      if (slot != null) 'slot': slot,
      if (spellcheck != null) 'spellcheck': spellcheck,
      if (tabindex != null) 'tabindex': tabindex,
      if (title != null) 'title': title,
      if (translate != null) 'translate': translate,
      if (type != null) 'type': type,
      if (usemap != null) 'usemap': usemap,
      if (width != null) 'width': width,
      ...?attributes,
    },
    styles: styles,
    events: events,
    onCreate: onCreate,
    onUpdate: onUpdate,
    onRemove: onRemove,
    children: children,
    child: child,
    text: text,
  );
}