Document.html constructor

const Document.html({
  1. Map<String, String>? attributes,
  2. Key? key,
})

Attaches a set of attributes to the <html> element.

This can be used at any point in the component tree and is supported both on the server during pre-rendering and on the client.

Can be used multiple times in an application where deeper or latter mounted components will override duplicate attributes from other .html() components.

Implementation

const factory Document.html({
  Map<String, String>? attributes,
  Key? key,
}) = AttachDocument.html;