OpenGraph class

OpenGraph metadata configuration for rich social media previews.

Example:

const og = OpenGraph(
  title: 'Bloom Framework',
  description: 'Full-stack reactive framework for Flutter and pure Dart',
  image: 'https://bloom.dev/og.png',
  type: 'website',
);

Constructors

OpenGraph({String? title, String? description, String? image, String? type = 'website', String? url, String? siteName})
Creates an OpenGraph metadata configuration.
const

Properties

description → String?
A short description of the content.
final
hashCode → int
The hash code for this object.
no setterinherited
image → String?
An image URL which should represent your object within the graph.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
siteName → String?
If your object is part of a larger web site, the name of the entire site.
final
title → String?
The title of the object as it should appear in the graph.
final
type → String?
The type of the object (e.g., 'website', 'article'). Defaults to 'website'.
final
url → String?
The canonical URL of the object.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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