OgImage class

An og:image object with its structured properties.

Inheritance

Constructors

OgImage({required String url, String? secureUrl, String? type, int? width, int? height, String? alt})
const
OgImage.fromJson(Map<String, dynamic> json)
factory

Properties

alt String?
og:image:alt — accessible description of the image.
final
hashCode int
The hash code for this object.
no setterinherited
height int?
og:image:height in pixels, when declared.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secureUrl String?
og:*:secure_url — https variant when the page declares one.
finalinherited
type String?
og:*:type — MIME type, e.g. image/jpeg or video/mp4.
finalinherited
url String
Absolute URL of the media (relative URLs are resolved by the parser).
finalinherited
width int?
og:image:width in pixels, when declared.
final

Methods

copyWith({String? url, String? secureUrl}) OgImage
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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