HtmlDocument class final

A whole page: <!doctype html>, <head> with title, charset and viewport, and body.

Inheritance

Constructors

HtmlDocument(List<Object?> body, {String title = '', List<Object?> head = const [], String lang = 'en'})
A whole page.

Properties

body → List<HtmlNode>
The nodes of <body>.
final
hashCode → int
The hash code for this object.
no setterinherited
The nodes of <head>.
final
lang → String
The lang of <html>.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
The <title>.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render() → String
The node's HTML.
inherited
toResponse(Request request) → Response
The response for request.
inherited
toString() → String
A string representation of this object.
inherited
writeTo(StringSink out) → void
Writes the node's HTML to out.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited