Media class

Annotations
  • @JsonSerializable(explicitToJson: true, fieldRename: FieldRename.snake)

Constructors

Media()
Media.fromJson(Map<String, dynamic> json)
factory

Properties

additionalMediaInfo AdditionalMediaInfo?
The additionalMediaInfo will contain additional media info provided by the publisher. Video content is made available only to Twitter official clients when embeddable=false. In this case, all video URLs provided in the payload will be Twitter-based, so the user can open the video in a Twitter owned property by clicking the link.
getter/setter pair
displayUrl String?
URL of the media to display to clients.
getter/setter pair
expandedUrl String?
An expanded version of displayUrl. Links to the media display page.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
idStr String?
ID of the media expressed as a string.
getter/setter pair
indices List<int>?
An array of integers indicating the offsets within the Tweet text where the URL begins and ends. The first integer represents the location of the first character of the URL in the Tweet text. The second integer represents the location of the first non-URL character occurring after the URL (or the end of the string if the URL is the last part of the Tweet text).
getter/setter pair
mediaUrl String?
An http:// URL pointing directly to the uploaded media file.
getter/setter pair
mediaUrlHttps String?
An https:// URL pointing directly to the uploaded media file, for embedding on https pages.
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
sourceStatusIdStr String?
Nullable. For Tweets containing media that was originally associated with a different tweet, this string-based ID points to the original Tweet.
getter/setter pair
type String?
Type of uploaded media. Possible types include photo, video, and animated_gif.
getter/setter pair
url String?
Wrapped URL for the media link. This corresponds with the URL embedded directly into the raw Tweet text, and the values for the indices parameter.
getter/setter pair
videoInfo VideoInfo?
Contains additional information for the media when the type is video or animated_gif.
getter/setter pair

Methods

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