track function

ElementNode track({
  1. Object? key,
  2. Ref<Element?>? ref,
  3. String? accesskey,
  4. String? className,
  5. String? contenteditable,
  6. String? dir,
  7. String? draggable,
  8. String? hidden,
  9. String? id,
  10. String? lang,
  11. String? spellcheck,
  12. String? style,
  13. String? tabindex,
  14. String? title,
  15. String? defaultTrack,
  16. String? kind,
  17. String? label,
  18. String? src,
  19. String? srclang,
  20. EventListener<UIEvent>? onabort,
  21. EventListener<Event>? onafterprint,
  22. EventListener<Event>? onbeforeprint,
  23. EventListener<BeforeUnloadEvent>? onbeforeunload,
  24. EventListener<FocusEvent>? onblur,
  25. EventListener<MouseEvent>? onclick,
  26. EventListener<Event>? onchange,
  27. EventListener<CompositionEvent>? oncompositionend,
  28. EventListener<CompositionEvent>? oncompositionstart,
  29. EventListener<CompositionEvent>? oncompositionupdate,
  30. EventListener<MouseEvent>? oncontextmenu,
  31. EventListener<MouseEvent>? ondblclick,
  32. EventListener<MouseEvent>? ondrag,
  33. EventListener<MouseEvent>? ondragend,
  34. EventListener<MouseEvent>? ondragenter,
  35. EventListener<MouseEvent>? ondragleave,
  36. EventListener<MouseEvent>? ondragover,
  37. EventListener<MouseEvent>? ondragstart,
  38. EventListener<MouseEvent>? ondrop,
  39. EventListener<UIEvent>? onerror,
  40. EventListener<FocusEvent>? onfocus,
  41. EventListener<FocusEvent>? onfocusin,
  42. EventListener<FocusEvent>? onfocusout,
  43. EventListener<HashChangeEvent>? onhashchange,
  44. EventListener<Event>? oninput,
  45. EventListener<Event>? oninvalid,
  46. EventListener<KeyboardEvent>? onkeydown,
  47. EventListener<KeyboardEvent>? onkeyup,
  48. EventListener<Event>? onlanguagechange,
  49. EventListener<UIEvent>? onload,
  50. EventListener<MouseEvent>? onmousedown,
  51. EventListener<MouseEvent>? onmouseenter,
  52. EventListener<MouseEvent>? onmouseleave,
  53. EventListener<MouseEvent>? onmousemove,
  54. EventListener<MouseEvent>? onmouseout,
  55. EventListener<MouseEvent>? onmouseover,
  56. EventListener<MouseEvent>? onmouseup,
  57. EventListener<PageTransitionEvent>? onpagehide,
  58. EventListener<PageTransitionEvent>? onpageshow,
  59. EventListener<PopStateEvent>? onpopstate,
  60. EventListener<Event>? onreset,
  61. EventListener<UIEvent>? onresize,
  62. EventListener<UIEvent>? onscroll,
  63. EventListener<UIEvent>? onselect,
  64. EventListener<MouseEvent>? onshow,
  65. EventListener<Event>? onsubmit,
  66. EventListener<UIEvent>? onunload,
  67. EventListener<WheelEvent>? onwheel,
  68. Iterable<DeactNode>? children,
})

Implementation

ElementNode track({
  Object? key,
  Ref<h.Element?>? ref,
  String? accesskey,
  String? className,
  String? contenteditable,
  String? dir,
  String? draggable,
  String? hidden,
  String? id,
  String? lang,
  String? spellcheck,
  String? style,
  String? tabindex,
  String? title,
  String? defaultTrack,
  String? kind,
  String? label,
  String? src,
  String? srclang,
  EventListener<h.UIEvent>? onabort,
  EventListener<h.Event>? onafterprint,
  EventListener<h.Event>? onbeforeprint,
  EventListener<h.BeforeUnloadEvent>? onbeforeunload,
  EventListener<h.FocusEvent>? onblur,
  EventListener<h.MouseEvent>? onclick,
  EventListener<h.Event>? onchange,
  EventListener<h.CompositionEvent>? oncompositionend,
  EventListener<h.CompositionEvent>? oncompositionstart,
  EventListener<h.CompositionEvent>? oncompositionupdate,
  EventListener<h.MouseEvent>? oncontextmenu,
  EventListener<h.MouseEvent>? ondblclick,
  EventListener<h.MouseEvent>? ondrag,
  EventListener<h.MouseEvent>? ondragend,
  EventListener<h.MouseEvent>? ondragenter,
  EventListener<h.MouseEvent>? ondragleave,
  EventListener<h.MouseEvent>? ondragover,
  EventListener<h.MouseEvent>? ondragstart,
  EventListener<h.MouseEvent>? ondrop,
  EventListener<h.UIEvent>? onerror,
  EventListener<h.FocusEvent>? onfocus,
  EventListener<h.FocusEvent>? onfocusin,
  EventListener<h.FocusEvent>? onfocusout,
  EventListener<h.HashChangeEvent>? onhashchange,
  EventListener<h.Event>? oninput,
  EventListener<h.Event>? oninvalid,
  EventListener<h.KeyboardEvent>? onkeydown,
  EventListener<h.KeyboardEvent>? onkeyup,
  EventListener<h.Event>? onlanguagechange,
  EventListener<h.UIEvent>? onload,
  EventListener<h.MouseEvent>? onmousedown,
  EventListener<h.MouseEvent>? onmouseenter,
  EventListener<h.MouseEvent>? onmouseleave,
  EventListener<h.MouseEvent>? onmousemove,
  EventListener<h.MouseEvent>? onmouseout,
  EventListener<h.MouseEvent>? onmouseover,
  EventListener<h.MouseEvent>? onmouseup,
  EventListener<h.PageTransitionEvent>? onpagehide,
  EventListener<h.PageTransitionEvent>? onpageshow,
  EventListener<h.PopStateEvent>? onpopstate,
  EventListener<h.Event>? onreset,
  EventListener<h.UIEvent>? onresize,
  EventListener<h.UIEvent>? onscroll,
  EventListener<h.UIEvent>? onselect,
  EventListener<h.MouseEvent>? onshow,
  EventListener<h.Event>? onsubmit,
  EventListener<h.UIEvent>? onunload,
  EventListener<h.WheelEvent>? onwheel,
  Iterable<DeactNode>? children,
}) {
  final attributes = <String, Object>{};
  if (accesskey != null) {
    attributes['accesskey'] = accesskey;
  }
  if (className != null) {
    attributes['class'] = className;
  }
  if (contenteditable != null) {
    attributes['contenteditable'] = contenteditable;
  }
  if (dir != null) {
    attributes['dir'] = dir;
  }
  if (draggable != null) {
    attributes['draggable'] = draggable;
  }
  if (hidden != null) {
    attributes['hidden'] = hidden;
  }
  if (id != null) {
    attributes['id'] = id;
  }
  if (lang != null) {
    attributes['lang'] = lang;
  }
  if (spellcheck != null) {
    attributes['spellcheck'] = spellcheck;
  }
  if (style != null) {
    attributes['style'] = style;
  }
  if (tabindex != null) {
    attributes['tabindex'] = tabindex;
  }
  if (title != null) {
    attributes['title'] = title;
  }
  if (defaultTrack != null) {
    attributes['default'] = defaultTrack;
  }
  if (kind != null) {
    attributes['kind'] = kind;
  }
  if (label != null) {
    attributes['label'] = label;
  }
  if (src != null) {
    attributes['src'] = src;
  }
  if (srclang != null) {
    attributes['srclang'] = srclang;
  }
  final listeners = <String, Object>{};
  if (onabort != null) {
    listeners['onabort'] = onabort;
  }
  if (onafterprint != null) {
    listeners['onafterprint'] = onafterprint;
  }
  if (onbeforeprint != null) {
    listeners['onbeforeprint'] = onbeforeprint;
  }
  if (onbeforeunload != null) {
    listeners['onbeforeunload'] = onbeforeunload;
  }
  if (onblur != null) {
    listeners['onblur'] = onblur;
  }
  if (onclick != null) {
    listeners['onclick'] = onclick;
  }
  if (onchange != null) {
    listeners['onchange'] = onchange;
  }
  if (oncompositionend != null) {
    listeners['oncompositionend'] = oncompositionend;
  }
  if (oncompositionstart != null) {
    listeners['oncompositionstart'] = oncompositionstart;
  }
  if (oncompositionupdate != null) {
    listeners['oncompositionupdate'] = oncompositionupdate;
  }
  if (oncontextmenu != null) {
    listeners['oncontextmenu'] = oncontextmenu;
  }
  if (ondblclick != null) {
    listeners['ondblclick'] = ondblclick;
  }
  if (ondrag != null) {
    listeners['ondrag'] = ondrag;
  }
  if (ondragend != null) {
    listeners['ondragend'] = ondragend;
  }
  if (ondragenter != null) {
    listeners['ondragenter'] = ondragenter;
  }
  if (ondragleave != null) {
    listeners['ondragleave'] = ondragleave;
  }
  if (ondragover != null) {
    listeners['ondragover'] = ondragover;
  }
  if (ondragstart != null) {
    listeners['ondragstart'] = ondragstart;
  }
  if (ondrop != null) {
    listeners['ondrop'] = ondrop;
  }
  if (onerror != null) {
    listeners['onerror'] = onerror;
  }
  if (onfocus != null) {
    listeners['onfocus'] = onfocus;
  }
  if (onfocusin != null) {
    listeners['onfocusin'] = onfocusin;
  }
  if (onfocusout != null) {
    listeners['onfocusout'] = onfocusout;
  }
  if (onhashchange != null) {
    listeners['onhashchange'] = onhashchange;
  }
  if (oninput != null) {
    listeners['oninput'] = oninput;
  }
  if (oninvalid != null) {
    listeners['oninvalid'] = oninvalid;
  }
  if (onkeydown != null) {
    listeners['onkeydown'] = onkeydown;
  }
  if (onkeyup != null) {
    listeners['onkeyup'] = onkeyup;
  }
  if (onlanguagechange != null) {
    listeners['onlanguagechange'] = onlanguagechange;
  }
  if (onload != null) {
    listeners['onload'] = onload;
  }
  if (onmousedown != null) {
    listeners['onmousedown'] = onmousedown;
  }
  if (onmouseenter != null) {
    listeners['onmouseenter'] = onmouseenter;
  }
  if (onmouseleave != null) {
    listeners['onmouseleave'] = onmouseleave;
  }
  if (onmousemove != null) {
    listeners['onmousemove'] = onmousemove;
  }
  if (onmouseout != null) {
    listeners['onmouseout'] = onmouseout;
  }
  if (onmouseover != null) {
    listeners['onmouseover'] = onmouseover;
  }
  if (onmouseup != null) {
    listeners['onmouseup'] = onmouseup;
  }
  if (onpagehide != null) {
    listeners['onpagehide'] = onpagehide;
  }
  if (onpageshow != null) {
    listeners['onpageshow'] = onpageshow;
  }
  if (onpopstate != null) {
    listeners['onpopstate'] = onpopstate;
  }
  if (onreset != null) {
    listeners['onreset'] = onreset;
  }
  if (onresize != null) {
    listeners['onresize'] = onresize;
  }
  if (onscroll != null) {
    listeners['onscroll'] = onscroll;
  }
  if (onselect != null) {
    listeners['onselect'] = onselect;
  }
  if (onshow != null) {
    listeners['onshow'] = onshow;
  }
  if (onsubmit != null) {
    listeners['onsubmit'] = onsubmit;
  }
  if (onunload != null) {
    listeners['onunload'] = onunload;
  }
  if (onwheel != null) {
    listeners['onwheel'] = onwheel;
  }
  return el(
    'track',
    key: key,
    ref: ref,
    attributes: attributes,
    listeners: listeners,
    children: children,
  );
}