OGImage class Null safety

Represents open graph image information

Implemented types
Annotations

Constructors

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

Properties

alt String?
Description of what's in this image
final
hashCode int
The hash code for this object. [...]
read-only, inherited
height int
Image height
@JsonKey(defaultValue: 0), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secureUrl String
Image secure url
final
type String?
Image type
final
url String
Image url
final
width int
Image width
@JsonKey(defaultValue: 0), final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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