document function

HtmlDocument document(
  1. List<Object?> body, {
  2. String title = '',
  3. List<Object?> head = const [],
  4. String lang = 'en',
  5. Map<String, Object?> bodyAttributes = const {},
})

A whole page; bodyAttributes go on <body>.

Implementation

HtmlDocument document(
  List<Object?> body, {
  String title = '',
  List<Object?> head = const [],
  String lang = 'en',
  Map<String, Object?> bodyAttributes = const {},
}) => HtmlDocument(
  body,
  title: title,
  head: head,
  lang: lang,
  bodyAttributes: bodyAttributes,
);