OGImage class

Represents a Open Graph Image of OGMetaData. For Specifications, see https://ogp.me/.

Implemented types
Annotations
  • @JsonSerializable()

Constructors

OGImage({String? url, String? secureUrl, String? type, String? alt, int width = 0, int height = 0})
OGImage.fromJson(Map<String, dynamic> json)
factory

Properties

alt String?
A description of what is in the image (not a caption).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height int
The number of pixels high.
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secureUrl String?
An alternate url to use if the webpage requires HTTPS.
getter/setter pairoverride-getter
type String?
A MIME type for this image.
getter/setter pair
url String?
An image URL which represents the object within the Open Graph.
getter/setter pairoverride-getter
width int
The number of pixels wide.
getter/setter pairoverride-getter

Methods

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

Operators

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