body property
BodyElement?
get
body
Implementation
BodyElement? get body {
var element = _html?._firstElementChild;
while (element != null) {
if (element is BodyElement) {
return element;
}
element = element.nextElementSibling;
}
return null;
}
set
body
(BodyElement? newValue)
Implementation
set body(BodyElement? newValue) {
final existing = head;
if (existing == null) {
if (newValue != null) {
_html?.append(newValue);
}
} else {
if (newValue == null) {
existing.remove();
} else {
existing.replaceWith(newValue);
}
}
assert(identical(body, newValue));
}