P constructor

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

Paragraph component.

Implementation

P(
  this.text, {
  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: "p");