SeoProps class

Constructors

SeoProps({String? title, String? description, String? canonicalUrl, String? imageUrl, String? siteName, String? twitterHandle, Map<String, String> extraMeta = const {}, Map<String, Object?>? structuredData})
const

Properties

canonicalUrl String?
final
description String?
final
extraMeta Map<String, String>
final
hashCode int
The hash code for this object.
no setterinherited
imageUrl String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
siteName String?
final
structuredData Map<String, Object?>?
Explicit JSON-LD structured data. When null, structuredDataJson derives a schema.org WebPage from the other properties.
final
title String?
final
twitterHandle String?
final

Methods

merge(SeoProps other) SeoProps
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
structuredDataJson() String?
The JSON-LD document for this page, or null when there is nothing to say. Explicit structuredData wins (with @context filled in when omitted); otherwise a schema.org WebPage derives from the properties the page already declares — the spec's "structured data and content schema" without per-page authoring.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

empty → const SeoProps