FaqSchema class
Schema.org FAQPage structured data.
Shows expandable FAQ results directly in Google Search.
FaqSchema(questions: [
FaqItem(
question: 'What is Flutter?',
answer: 'Flutter is a UI toolkit by Google...',
),
FaqItem(
question: 'Is Flutter good for web?',
answer: 'Yes, Flutter Web supports...',
),
])
- Inheritance
-
- Object
- JsonLdSchema
- FaqSchema
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJsonLd(
) → String -
Convert to a complete JSON-LD string with
@context.inherited -
toJsonLdMinified(
) → String -
Convert to a minified JSON-LD string (no extra whitespace).
inherited
-
toMap(
) → Map< String, dynamic> -
Convert this schema to a map (without
@context). Subclasses must implement this.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited