build method

  1. @override
String build()
override

Implementation

@override
String build() => [
  '<aside',
  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"',
  '>',
  super.build(),
  '</aside>',
].join();