MediaEntity class

Represents media elements uploaded with the Tweet.

Inheritance

Constructors

MediaEntity({required double id, required String mediaUrlHttps, required dynamic url, required dynamic displayUrl, required dynamic expandedUrl, required String type, Sizes? sizes, VideoInfo? videoInfo, required dynamic indices})
MediaEntity.fromJson(Map<String, dynamic> json)
factory
MediaEntity.fromRawJson(String str)
factory

Properties

displayUrl String
URL pasted/typed into Tweet.
getter/setter pairinherited
end int
no setterinherited
expandedUrl String
Expanded version of display_url .
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id double
ID of the media expressed as a 64-bit integer.
getter/setter pair
indices List<int>
An array of integers indicating the offsets within the Tweet text where the Entity begins and ends.
getter/setter pairinherited
mediaUrlHttps String
An https:// URL pointing directly to the uploaded media file, for embedding on https pages. For media in direct messages, media_url_https must be accessed by signing a request with the user’s access token using OAuth 1.0A. It is not possible to access images via an authenticated twitter.com session. Please visit this page to learn how to account for these recent change. You cannot directly embed these images in a web page. See Photo Media URL formatting for how to format a photo's URL, such as media_url_https, based on the available sizes.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizes Sizes?
An object showing available sizes for the media file.
getter/setter pair
start int
no setterinherited
type String
Type of uploaded media. Possible types include photo, video, and animated_gif.
getter/setter pair
url String
Wrapped URL, corresponding to the value embedded directly into the raw Tweet text, and the values for the indices parameter.
getter/setter pairinherited
videoInfo VideoInfo?
Contains information about video.
getter/setter pair

Methods

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

Operators

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