OGMetaData class
Represents a OGMetaData of a url. For Specifications, see https://ogp.me/. Currently we only support images.
- Annotations
-
- @JsonSerializable(createToJson: false)
Constructors
- OGMetaData({String? title, String? url, String? description, OGImage? ogImage})
-
OGMetaData.fromJson(Map<
String, dynamic> json) -
factory
Properties
- description → String?
-
A one to two sentence description of the object.
ex: "Sean Connery found fame and fortune
as the suave, sophisticated British agent, James Bond."
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- ogImage → OGImage?
-
An ogImage object that contains information about the image that this Open Graph
points to.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- title → String?
-
The title of the object as it should appear within the graph. ex: "The Rock".
final
- url → String?
-
The canonical URL of the object that can be used as its permanent ID in the graph.
ex: "http://www.imdb.com/title/tt0117500/"
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