Div constructor

Div({
  1. String? id,
  2. Map<String, dynamic>? style,
  3. String? className,
  4. Map<String, String>? attributes,
  5. List<Component>? children,
  6. void onClick(
    1. Event
    )?,
  7. void onDoubleClick(
    1. Event
    )?,
  8. void onContextMenu(
    1. Event
    )?,
  9. void onDragStart(
    1. Event
    )?,
  10. void onDrag(
    1. Event
    )?,
  11. void onDragEnd(
    1. Event
    )?,
  12. void onDragEnter(
    1. Event
    )?,
  13. void onDragOver(
    1. Event
    )?,
  14. void onDragLeave(
    1. Event
    )?,
  15. void onDrop(
    1. Event
    )?,
  16. void onKeyDown(
    1. Event
    )?,
  17. void onKeyPress(
    1. Event
    )?,
  18. void onKeyUp(
    1. Event
    )?,
  19. void onMouseOver(
    1. Event
    )?,
  20. void onMouseOut(
    1. Event
    )?,
  21. void onMouseDown(
    1. Event
    )?,
  22. void onMouseUp(
    1. Event
    )?,
  23. void onMouseMove(
    1. Event
    )?,
  24. void onInput(
    1. Event
    )?,
  25. void onChange(
    1. Event
    )?,
  26. void onSubmit(
    1. Event
    )?,
  27. void onFocus(
    1. Event
    )?,
  28. void onBlur(
    1. Event
    )?,
  29. void onScroll(
    1. Event
    )?,
  30. void onWheel(
    1. Event
    )?,
})

Div component is the most basic component that can be rendered.

It is a block-level element that can be styled with CSS and generally has no meaning other than to group elements together.

Implementation

Div(
    {super.id,
    super.style,
    super.className,
    super.attributes,
    super.children,
    super.onClick,
    super.onDoubleClick,
    super.onContextMenu,
    super.onDragStart,
    super.onDrag,
    super.onDragEnd,
    super.onDragEnter,
    super.onDragOver,
    super.onDragLeave,
    super.onDrop,
    super.onKeyDown,
    super.onKeyPress,
    super.onKeyUp,
    super.onMouseOver,
    super.onMouseOut,
    super.onMouseDown,
    super.onMouseUp,
    super.onMouseMove,
    super.onInput,
    super.onChange,
    super.onSubmit,
    super.onFocus,
    super.onBlur,
    super.onScroll,
    super.onWheel})
    : super(tag: "div");