Document class abstract

Implemented types
Implementers

Constructors

Document({String? title, String? lang, String? base, String? charset, String? viewport, Map<String, String> meta, List<StyleRule> styles, List<Component> head, required Component body})
Sets up a basic document structure at the root of your app and renders the main <html>, <head> and <body> tags.
const
factory
Document.body({Map<String, String>? attributes, Key? key})
Attaches a set of attributes to the <body> element.
const
factory
Document.head({String? title, Map<String, String>? meta, List<Component>? children, Key? key})
Renders metadata and other elements inside the <head> of the document.
const
factory
Document.html({Map<String, String>? attributes, Key? key})
Attaches a set of attributes to the <html> element.
const
factory
Document.template({String name, String attachTo, required Component child})
Loads an external .template.html file from the filesystem and attaches the provided child component to that template.
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → Element
Inflates this configuration to a concrete instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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