OEmbed class
Represents an oEmbed provider.
Constructors
-
OEmbed(String providerName, String providerUrl, List<
OEmbedEndpoint> endpoints) - Creates a new instance of OEmbed.
-
OEmbed.fromJson(Map<
String, dynamic> json) -
Creates a new instance of OEmbed from a JSON map.
factory
Properties
-
endpoints
↔ List<
OEmbedEndpoint> -
The list of endpoints.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- providerName ↔ String
-
The name of the provider.
getter/setter pair
- providerUrl ↔ String
-
The URL of the provider.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this OEmbed 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, [OEmbedProviders providers = const [], bool updateProviders = true]) → Future< OEmbedData> - Retrieves oEmbed data from the given URL.
-
getProviders(
[bool updateProviders = true]) → Future< OEmbedProviders> - Retrieves a list of oEmbed providers from the oEmbed website.