TwitterCard class

Twitter Card metadata for rich Twitter social previews.

Example:

const twitter = TwitterCard(
  card: 'summary_large_image',
  site: '@BloomFramework',
  title: 'Bloom Framework',
  description: 'Full-stack reactive framework',
);

Constructors

TwitterCard({String card = 'summary_large_image', String? site, String? creator, String? title, String? description, String? image})
Creates a TwitterCard metadata configuration.
const

Properties

card → String
The card type: summary, summary_large_image, app, or player.
final
creator → String?
The @username of content creator.
final
description → String?
Description of the card.
final
hashCode → int
The hash code for this object.
no setterinherited
image → String?
URL of the image to use in the card.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
site → String?
The @username of website.
final
title → String?
Title of the card.
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