title property
String?
get
title
Implementation
String? get title {
var head = this.head;
if (head == null) {
final documentElement = this.documentElement!;
documentElement.append(HeadElement());
head = this.head!;
}
for (var element in head.children) {
if (element is TitleElement) {
return element.text;
}
}
return null;
}
set
title
(String? value)
Implementation
set title(String? value) {
var head = this.head;
if (head == null) {
final documentElement = this.documentElement!;
documentElement.append(HeadElement());
head = this.head!;
}
for (var element in head.children) {
if (element is TitleElement) {
element.text = value;
return;
}
}
head.append(TitleElement()..text = value);
}