innerHtml property Null safety

String innerHtml

Returns a fragment of HTML or XML that represents the element's contents. Can be set, to replace the contents of the element with nodes parsed from the given string.


String get innerHtml => _innerHtml;
void innerHtml=(String value)


set innerHtml(String value) {
  // TODO(jmesserly): should be able to get the same effect by adding the
  // fragment directly.
  nodes.addAll(parseFragment(value, container: localName!).nodes);