samp function
ElementNode
samp({
- Object? key,
- Ref<
Element?> ? ref, - String? accesskey,
- String? className,
- String? contenteditable,
- String? dir,
- String? draggable,
- String? id,
- String? lang,
- String? spellcheck,
- String? style,
- String? tabindex,
- String? title,
- EventListener<
UIEvent> ? onabort, - EventListener<
Event> ? onafterprint, - EventListener<
Event> ? onbeforeprint, - EventListener<
BeforeUnloadEvent> ? onbeforeunload, - EventListener<
FocusEvent> ? onblur, - EventListener<
MouseEvent> ? onclick, - EventListener<
Event> ? onchange, - EventListener<
CompositionEvent> ? oncompositionend, - EventListener<
CompositionEvent> ? oncompositionstart, - EventListener<
CompositionEvent> ? oncompositionupdate, - EventListener<
MouseEvent> ? ondblclick, - EventListener<
MouseEvent> ? ondrag, - EventListener<
MouseEvent> ? ondragend, - EventListener<
MouseEvent> ? ondragenter, - EventListener<
MouseEvent> ? ondragleave, - EventListener<
MouseEvent> ? ondragover, - EventListener<
MouseEvent> ? ondragstart, - EventListener<
MouseEvent> ? ondrop, - EventListener<
UIEvent> ? onerror, - EventListener<
FocusEvent> ? onfocus, - EventListener<
FocusEvent> ? onfocusin, - EventListener<
FocusEvent> ? onfocusout, - EventListener<
HashChangeEvent> ? onhashchange, - EventListener<
Event> ? oninput, - EventListener<
Event> ? oninvalid, - EventListener<
KeyboardEvent> ? onkeydown, - EventListener<
KeyboardEvent> ? onkeyup, - EventListener<
Event> ? onlanguagechange, - EventListener<
UIEvent> ? onload, - EventListener<
MouseEvent> ? onmousedown, - EventListener<
MouseEvent> ? onmouseenter, - EventListener<
MouseEvent> ? onmouseleave, - EventListener<
MouseEvent> ? onmousemove, - EventListener<
MouseEvent> ? onmouseout, - EventListener<
MouseEvent> ? onmouseover, - EventListener<
MouseEvent> ? onmouseup, - EventListener<
PageTransitionEvent> ? onpagehide, - EventListener<
PageTransitionEvent> ? onpageshow, - EventListener<
PopStateEvent> ? onpopstate, - EventListener<
Event> ? onreset, - EventListener<
UIEvent> ? onresize, - EventListener<
UIEvent> ? onscroll, - EventListener<
UIEvent> ? onselect, - EventListener<
MouseEvent> ? onshow, - EventListener<
Event> ? onsubmit, - EventListener<
UIEvent> ? onunload, - EventListener<
WheelEvent> ? onwheel, - Iterable<
DeactNode> ? children,
Implementation
ElementNode samp({
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,
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;
}
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(
'samp',
key: key,
ref: ref,
attributes: attributes,
listeners: listeners,
children: children,
);
}