OEmbedData class

Represents the data returned by an oEmbed request.

Constructors

OEmbedData({String? title, String? authorName, String? authorUrl, String? type, int? height, int? width, String? version, String? providerName, String? providerUrl, int? thumbnailHeight, int? thumbnailWidth, String? thumbnailUrl, String? html})
Constructs a new OEmbedData instance.
OEmbedData.fromJson(Map<String, dynamic> json)
Constructs a new OEmbedData instance from a JSON map.

Properties

authorName ↔ String?
The name of the author of the resource.
getter/setter pair
authorUrl ↔ String?
The URL of the author of the resource.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
height ↔ int?
The height of the resource.
getter/setter pair
html ↔ String?
The HTML code to embed the resource.
getter/setter pair
providerName ↔ String?
The name of the provider of the resource.
getter/setter pair
providerUrl ↔ String?
The URL of the provider of the resource.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thumbnailHeight ↔ int?
The height of the thumbnail image.
getter/setter pair
thumbnailUrl ↔ String?
The URL of the thumbnail image.
getter/setter pair
thumbnailWidth ↔ int?
The width of the thumbnail image.
getter/setter pair
title ↔ String?
The title of the resource.
getter/setter pair
type ↔ String?
The type of the resource.
getter/setter pair
version ↔ String?
The version of the oEmbed protocol used.
getter/setter pair
width ↔ int?
The width of the resource.
getter/setter pair

Methods

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

Operators

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

Static Methods

fromUri(Uri url) → Future<OEmbedData>
Constructs a new OEmbedData instance from a URL.