addPage method

void addPage({
  1. required String path,
  2. required String title,
  3. String? description,
  4. String? ogImage,
  5. String? ogType,
  6. String? canonicalUrl,
  7. String? jsonLd,
  8. String? noscriptContent,
  9. Map<String, String>? additionalMeta,
})

Add a page to generate a shell for

Implementation

void addPage({
  required String path,
  required String title,
  String? description,
  String? ogImage,
  String? ogType,
  String? canonicalUrl,
  String? jsonLd,
  String? noscriptContent,
  Map<String, String>? additionalMeta,
}) {
  _pages.add(
    HtmlShellPage(
      path: path,
      title: title,
      description: description,
      ogImage: ogImage,
      ogType: ogType,
      canonicalUrl: canonicalUrl,
      jsonLd: jsonLd,
      noscriptContent: noscriptContent,
      additionalMeta: additionalMeta,
    ),
  );
}