bodyElement function Null safety

BodyElement bodyElement(
  1. {String? nonce,
  2. Map<String, String>? attributes,
  3. List<Element>? children,
  4. Iterable<String>? classes,
  5. Map<String, String>? dataset,
  6. String? innerHtml,
  7. String? innerText,
  8. int? scrollLeft,
  9. int? scrollTop,
  10. String? contentEditable,
  11. String? dir,
  12. bool? draggable,
  13. bool? hidden,
  14. bool? inert,
  15. String? inputMode,
  16. String? lang,
  17. bool? spellcheck,
  18. int? tabIndex,
  19. String? title,
  20. bool? translate,
  21. String? className,
  22. String? id,
  23. String? slot,
  24. Iterable<Node>? nodes,
  25. String? text,
  26. void onBlur(
    1. Event
    )?,
  27. void onError(
    1. Event
    )?,
  28. void onFocus(
    1. Event
    )?,
  29. void onHashChange(
    1. Event
    )?,
  30. void onLoad(
    1. Event
    )?,
  31. void onMessage(
    1. MessageEvent
    )?,
  32. void onOffline(
    1. Event
    )?,
  33. void onOnline(
    1. Event
    )?,
  34. void onPopState(
    1. PopStateEvent
    )?,
  35. void onResize(
    1. Event
    )?,
  36. void onScroll(
    1. Event
    )?,
  37. void onStorage(
    1. StorageEvent
    )?,
  38. void onUnload(
    1. Event
    )?,
  39. void onAbort(
    1. Event
    )?,
  40. void onBeforeCopy(
    1. Event
    )?,
  41. void onBeforeCut(
    1. Event
    )?,
  42. void onBeforePaste(
    1. Event
    )?,
  43. void onCanPlay(
    1. Event
    )?,
  44. void onCanPlayThrough(
    1. Event
    )?,
  45. void onChange(
    1. Event
    )?,
  46. void onClick(
    1. MouseEvent
    )?,
  47. void onContextMenu(
    1. MouseEvent
    )?,
  48. void onCopy(
    1. ClipboardEvent
    )?,
  49. void onCut(
    1. ClipboardEvent
    )?,
  50. void onDoubleClick(
    1. Event
    )?,
  51. void onDrag(
    1. MouseEvent
    )?,
  52. void onDragEnd(
    1. MouseEvent
    )?,
  53. void onDragEnter(
    1. MouseEvent
    )?,
  54. void onDragLeave(
    1. MouseEvent
    )?,
  55. void onDragOver(
    1. MouseEvent
    )?,
  56. void onDragStart(
    1. MouseEvent
    )?,
  57. void onDrop(
    1. MouseEvent
    )?,
  58. void onDurationChange(
    1. Event
    )?,
  59. void onEmptied(
    1. Event
    )?,
  60. void onEnded(
    1. Event
    )?,
  61. void onInput(
    1. Event
    )?,
  62. void onInvalid(
    1. Event
    )?,
  63. void onKeyDown(
    1. KeyboardEvent
    )?,
  64. void onKeyPress(
    1. KeyboardEvent
    )?,
  65. void onKeyUp(
    1. KeyboardEvent
    )?,
  66. void onLoadedData(
    1. Event
    )?,
  67. void onLoadedMetadata(
    1. Event
    )?,
  68. void onMouseDown(
    1. MouseEvent
    )?,
  69. void onMouseEnter(
    1. MouseEvent
    )?,
  70. void onMouseLeave(
    1. MouseEvent
    )?,
  71. void onMouseMove(
    1. MouseEvent
    )?,
  72. void onMouseOut(
    1. MouseEvent
    )?,
  73. void onMouseOver(
    1. MouseEvent
    )?,
  74. void onMouseUp(
    1. MouseEvent
    )?,
  75. void onMouseWheel(
    1. WheelEvent
    )?,
  76. void onPaste(
    1. ClipboardEvent
    )?,
  77. void onPause(
    1. Event
    )?,
  78. void onPlay(
    1. Event
    )?,
  79. void onPlaying(
    1. Event
    )?,
  80. void onRateChange(
    1. Event
    )?,
  81. void onReset(
    1. Event
    )?,
  82. void onSearch(
    1. Event
    )?,
  83. void onSeeked(
    1. Event
    )?,
  84. void onSeeking(
    1. Event
    )?,
  85. void onSelect(
    1. Event
    )?,
  86. void onSelectStart(
    1. Event
    )?,
  87. void onStalled(
    1. Event
    )?,
  88. void onSubmit(
    1. Event
    )?,
  89. void onSuspend(
    1. Event
    )?,
  90. void onTimeUpdate(
    1. Event
    )?,
  91. void onTouchCancel(
    1. TouchEvent
    )?,
  92. void onTouchEnd(
    1. TouchEvent
    )?,
  93. void onTouchEnter(
    1. TouchEvent
    )?,
  94. void onTouchLeave(
    1. TouchEvent
    )?,
  95. void onTouchMove(
    1. TouchEvent
    )?,
  96. void onTouchStart(
    1. TouchEvent
    )?,
  97. void onTransitionEnd(
    1. TransitionEvent
    )?,
  98. void onVolumeChange(
    1. Event
    )?,
  99. void onWaiting(
    1. Event
    )?,
  100. void onFullscreenChange(
    1. Event
    )?,
  101. void onFullscreenError(
    1. Event
    )?,
  102. void onWheel(
    1. WheelEvent
    )?}
)

Implementation

BodyElement bodyElement(
    {String? nonce,
    Map<String, String>? attributes,
    List<Element>? children,
    Iterable<String>? classes,
    Map<String, String>? dataset,
    String? innerHtml,
    String? innerText,
    int? scrollLeft,
    int? scrollTop,
    String? contentEditable,
    String? dir,
    bool? draggable,
    bool? hidden,
    bool? inert,
    String? inputMode,
    String? lang,
    bool? spellcheck,
    int? tabIndex,
    String? title,
    bool? translate,
    String? className,
    String? id,
    String? slot,
    Iterable<Node>? nodes,
    String? text,
    void Function(Event)? onBlur,
    void Function(Event)? onError,
    void Function(Event)? onFocus,
    void Function(Event)? onHashChange,
    void Function(Event)? onLoad,
    void Function(MessageEvent)? onMessage,
    void Function(Event)? onOffline,
    void Function(Event)? onOnline,
    void Function(PopStateEvent)? onPopState,
    void Function(Event)? onResize,
    void Function(Event)? onScroll,
    void Function(StorageEvent)? onStorage,
    void Function(Event)? onUnload,
    void Function(Event)? onAbort,
    void Function(Event)? onBeforeCopy,
    void Function(Event)? onBeforeCut,
    void Function(Event)? onBeforePaste,
    void Function(Event)? onCanPlay,
    void Function(Event)? onCanPlayThrough,
    void Function(Event)? onChange,
    void Function(MouseEvent)? onClick,
    void Function(MouseEvent)? onContextMenu,
    void Function(ClipboardEvent)? onCopy,
    void Function(ClipboardEvent)? onCut,
    void Function(Event)? onDoubleClick,
    void Function(MouseEvent)? onDrag,
    void Function(MouseEvent)? onDragEnd,
    void Function(MouseEvent)? onDragEnter,
    void Function(MouseEvent)? onDragLeave,
    void Function(MouseEvent)? onDragOver,
    void Function(MouseEvent)? onDragStart,
    void Function(MouseEvent)? onDrop,
    void Function(Event)? onDurationChange,
    void Function(Event)? onEmptied,
    void Function(Event)? onEnded,
    void Function(Event)? onInput,
    void Function(Event)? onInvalid,
    void Function(KeyboardEvent)? onKeyDown,
    void Function(KeyboardEvent)? onKeyPress,
    void Function(KeyboardEvent)? onKeyUp,
    void Function(Event)? onLoadedData,
    void Function(Event)? onLoadedMetadata,
    void Function(MouseEvent)? onMouseDown,
    void Function(MouseEvent)? onMouseEnter,
    void Function(MouseEvent)? onMouseLeave,
    void Function(MouseEvent)? onMouseMove,
    void Function(MouseEvent)? onMouseOut,
    void Function(MouseEvent)? onMouseOver,
    void Function(MouseEvent)? onMouseUp,
    void Function(WheelEvent)? onMouseWheel,
    void Function(ClipboardEvent)? onPaste,
    void Function(Event)? onPause,
    void Function(Event)? onPlay,
    void Function(Event)? onPlaying,
    void Function(Event)? onRateChange,
    void Function(Event)? onReset,
    void Function(Event)? onSearch,
    void Function(Event)? onSeeked,
    void Function(Event)? onSeeking,
    void Function(Event)? onSelect,
    void Function(Event)? onSelectStart,
    void Function(Event)? onStalled,
    void Function(Event)? onSubmit,
    void Function(Event)? onSuspend,
    void Function(Event)? onTimeUpdate,
    void Function(TouchEvent)? onTouchCancel,
    void Function(TouchEvent)? onTouchEnd,
    void Function(TouchEvent)? onTouchEnter,
    void Function(TouchEvent)? onTouchLeave,
    void Function(TouchEvent)? onTouchMove,
    void Function(TouchEvent)? onTouchStart,
    void Function(TransitionEvent)? onTransitionEnd,
    void Function(Event)? onVolumeChange,
    void Function(Event)? onWaiting,
    void Function(Event)? onFullscreenChange,
    void Function(Event)? onFullscreenError,
    void Function(WheelEvent)? onWheel}) {
  final v = BodyElement();
  if (nonce != null) v.nonce = nonce;
  if (attributes != null) v.attributes = attributes;
  if (children != null) v.children = children;
  if (classes != null) v.classes = classes;
  if (dataset != null) v.dataset = dataset;
  if (innerHtml != null) v.innerHtml = innerHtml;
  if (innerText != null) v.innerText = innerText;
  if (scrollLeft != null) v.scrollLeft = scrollLeft;
  if (scrollTop != null) v.scrollTop = scrollTop;
  if (contentEditable != null) v.contentEditable = contentEditable;
  if (dir != null) v.dir = dir;
  if (draggable != null) v.draggable = draggable;
  if (hidden != null) v.hidden = hidden;
  if (inert != null) v.inert = inert;
  if (inputMode != null) v.inputMode = inputMode;
  if (lang != null) v.lang = lang;
  if (spellcheck != null) v.spellcheck = spellcheck;
  if (tabIndex != null) v.tabIndex = tabIndex;
  if (title != null) v.title = title;
  if (translate != null) v.translate = translate;
  if (className != null) v.className = className;
  if (id != null) v.id = id;
  if (slot != null) v.slot = slot;
  if (nodes != null) v.nodes = nodes;
  if (text != null) v.text = text;
  if (onBlur != null) v.onBlur.listen(onBlur);
  if (onError != null) v.onError.listen(onError);
  if (onFocus != null) v.onFocus.listen(onFocus);
  if (onHashChange != null) v.onHashChange.listen(onHashChange);
  if (onLoad != null) v.onLoad.listen(onLoad);
  if (onMessage != null) v.onMessage.listen(onMessage);
  if (onOffline != null) v.onOffline.listen(onOffline);
  if (onOnline != null) v.onOnline.listen(onOnline);
  if (onPopState != null) v.onPopState.listen(onPopState);
  if (onResize != null) v.onResize.listen(onResize);
  if (onScroll != null) v.onScroll.listen(onScroll);
  if (onStorage != null) v.onStorage.listen(onStorage);
  if (onUnload != null) v.onUnload.listen(onUnload);
  if (onAbort != null) v.onAbort.listen(onAbort);
  if (onBeforeCopy != null) v.onBeforeCopy.listen(onBeforeCopy);
  if (onBeforeCut != null) v.onBeforeCut.listen(onBeforeCut);
  if (onBeforePaste != null) v.onBeforePaste.listen(onBeforePaste);
  if (onCanPlay != null) v.onCanPlay.listen(onCanPlay);
  if (onCanPlayThrough != null) v.onCanPlayThrough.listen(onCanPlayThrough);
  if (onChange != null) v.onChange.listen(onChange);
  if (onClick != null) v.onClick.listen(onClick);
  if (onContextMenu != null) v.onContextMenu.listen(onContextMenu);
  if (onCopy != null) v.onCopy.listen(onCopy);
  if (onCut != null) v.onCut.listen(onCut);
  if (onDoubleClick != null) v.onDoubleClick.listen(onDoubleClick);
  if (onDrag != null) v.onDrag.listen(onDrag);
  if (onDragEnd != null) v.onDragEnd.listen(onDragEnd);
  if (onDragEnter != null) v.onDragEnter.listen(onDragEnter);
  if (onDragLeave != null) v.onDragLeave.listen(onDragLeave);
  if (onDragOver != null) v.onDragOver.listen(onDragOver);
  if (onDragStart != null) v.onDragStart.listen(onDragStart);
  if (onDrop != null) v.onDrop.listen(onDrop);
  if (onDurationChange != null) v.onDurationChange.listen(onDurationChange);
  if (onEmptied != null) v.onEmptied.listen(onEmptied);
  if (onEnded != null) v.onEnded.listen(onEnded);
  if (onInput != null) v.onInput.listen(onInput);
  if (onInvalid != null) v.onInvalid.listen(onInvalid);
  if (onKeyDown != null) v.onKeyDown.listen(onKeyDown);
  if (onKeyPress != null) v.onKeyPress.listen(onKeyPress);
  if (onKeyUp != null) v.onKeyUp.listen(onKeyUp);
  if (onLoadedData != null) v.onLoadedData.listen(onLoadedData);
  if (onLoadedMetadata != null) v.onLoadedMetadata.listen(onLoadedMetadata);
  if (onMouseDown != null) v.onMouseDown.listen(onMouseDown);
  if (onMouseEnter != null) v.onMouseEnter.listen(onMouseEnter);
  if (onMouseLeave != null) v.onMouseLeave.listen(onMouseLeave);
  if (onMouseMove != null) v.onMouseMove.listen(onMouseMove);
  if (onMouseOut != null) v.onMouseOut.listen(onMouseOut);
  if (onMouseOver != null) v.onMouseOver.listen(onMouseOver);
  if (onMouseUp != null) v.onMouseUp.listen(onMouseUp);
  if (onMouseWheel != null) v.onMouseWheel.listen(onMouseWheel);
  if (onPaste != null) v.onPaste.listen(onPaste);
  if (onPause != null) v.onPause.listen(onPause);
  if (onPlay != null) v.onPlay.listen(onPlay);
  if (onPlaying != null) v.onPlaying.listen(onPlaying);
  if (onRateChange != null) v.onRateChange.listen(onRateChange);
  if (onReset != null) v.onReset.listen(onReset);
  if (onSearch != null) v.onSearch.listen(onSearch);
  if (onSeeked != null) v.onSeeked.listen(onSeeked);
  if (onSeeking != null) v.onSeeking.listen(onSeeking);
  if (onSelect != null) v.onSelect.listen(onSelect);
  if (onSelectStart != null) v.onSelectStart.listen(onSelectStart);
  if (onStalled != null) v.onStalled.listen(onStalled);
  if (onSubmit != null) v.onSubmit.listen(onSubmit);
  if (onSuspend != null) v.onSuspend.listen(onSuspend);
  if (onTimeUpdate != null) v.onTimeUpdate.listen(onTimeUpdate);
  if (onTouchCancel != null) v.onTouchCancel.listen(onTouchCancel);
  if (onTouchEnd != null) v.onTouchEnd.listen(onTouchEnd);
  if (onTouchEnter != null) v.onTouchEnter.listen(onTouchEnter);
  if (onTouchLeave != null) v.onTouchLeave.listen(onTouchLeave);
  if (onTouchMove != null) v.onTouchMove.listen(onTouchMove);
  if (onTouchStart != null) v.onTouchStart.listen(onTouchStart);
  if (onTransitionEnd != null) v.onTransitionEnd.listen(onTransitionEnd);
  if (onVolumeChange != null) v.onVolumeChange.listen(onVolumeChange);
  if (onWaiting != null) v.onWaiting.listen(onWaiting);
  if (onFullscreenChange != null)
    v.onFullscreenChange.listen(onFullscreenChange);
  if (onFullscreenError != null) v.onFullscreenError.listen(onFullscreenError);
  if (onWheel != null) v.onWheel.listen(onWheel);
  return v;
}