build method

  1. @override
String build()
override

Implementation

@override
String build() => [
  '<h5',
  if (accesskey != null) ' accesskey="$accesskey"',
  if (autofocus) ' autofocus',
  if (classList != null && classList!.isNotEmpty)
    ' class="${classList!.map((e) => e.name).join(' ')}"',
  if (contentEditable) ' contenteditable',
  if (contextmenu != null) ' contextmenu="$contextmenu"',
  if (dir != null) ' dir="$dir"',
  if (hidden) ' hidden',
  if (id != null) ' id="$id"',
  if (lang != null) ' lang="$lang"',
  if (role != null) ' role="$role"',
  if (spellcheck) ' spellcheck',
  if (styleList != null && styleList!.isNotEmpty)
    ' style="${styleList!.map((e) => e.build()).join(';')}"',
  if (tabindex != null) ' tabindex="$tabindex"',
  if (title != null) ' title="$title"',
  if (onblur != null) ' onblur="$onblur"',
  if (onchange != null) ' onchange="$onchange"',
  if (onclick != null) ' onclick="$onclick"',
  if (ondblclick != null) ' ondblclick="$ondblclick"',
  if (onfocus != null) ' onfocus="$onfocus"',
  if (onkeydown != null) ' onkeydown="$onkeydown"',
  if (onkeypress != null) ' onkeypress="$onkeypress"',
  if (onkeyup != null) ' onkeyup="$onkeyup"',
  if (onload != null) ' onload="$onload"',
  if (onmousedown != null) ' onmousedown="$onmousedown"',
  if (onmousemove != null) ' onmousemove="$onmousemove"',
  if (onmouseout != null) ' onmouseout="$onmouseout"',
  if (onmouseover != null) ' onmouseover="$onmouseover"',
  if (onmouseup != null) ' onmouseup="$onmouseup"',
  if (onreset != null) ' onreset="$onreset"',
  if (onselect != null) ' onselect="$onselect"',
  if (onsubmit != null) ' onsubmit="$onsubmit"',
  if (onunload != null) ' onunload="$onunload"',
  '>',
  super.build(),
  '</h5>',
].join();