Tweet class

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

Constructors

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

Properties

coordinates Coordinates?
Nullable. Represents the geographic location of this Tweet as reported by the user or client application.
getter/setter pair
createdAt DateTime?
UTC time when this Tweet was created.
getter/setter pair
currentUserRetweet CurrentUserRetweet?
Nullable. This field only surfaces when a Tweet contains a current_user_retweet. The meaning of the field doesn’t pertain to the Tweet content itself, but instead it is an indicator that the current authenticated user reweeted the Tweet. This can be included if the includeMyRetweet param in any service method is set to true.
getter/setter pair
displayTextRange List<int>?
An array of two unicode code point indices, identifying the inclusive start and exclusive end of the displayable content of the tweet.
getter/setter pair
entities Entities?
Entities which have been parsed out of the text of the Tweet.
getter/setter pair
extEditControl EditControlData?
The info about the tweet edit history
getter/setter pair
extendedEntities Entities?
When between one and four native photos or one video or one animated GIF are in Tweet, contains an array 'media' metadata. This is also available in Quote Tweets.
getter/setter pair
favoriteCount int?
Nullable. Indicates approximately how many times this Tweet has been liked by Twitter users.
getter/setter pair
favorited bool?
Nullable. Indicates whether this Tweet has been liked by the authenticating user.
getter/setter pair
fullText String?
The actual UTF-8 text of the status update.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
idStr String?
The string representation of the unique identifier for this Tweet.
getter/setter pair
inReplyToScreenName String?
Nullable. If the represented Tweet is a reply, this field will contain the screen name of the original Tweet’s author.
getter/setter pair
inReplyToStatusIdStr String?
Nullable. If the represented Tweet is a reply, this field will contain the string representation of the original Tweet’s ID.
getter/setter pair
inReplyToUserIdStr String?
Nullable. If the represented Tweet is a reply, this field will contain the integer representation of the original Tweet’s author ID. This will not necessarily always be the user directly mentioned in the Tweet.
getter/setter pair
isQuoteStatus bool?
Indicates whether this is a Quoted Tweet.
getter/setter pair
lang String?
Nullable. When present, indicates a BCP 47 language identifier corresponding to the machine-detected language of the Tweet text, or und if no language could be detected.
getter/setter pair
place Place?
Nullable. When present, indicates that the tweet is associated (but not necessarily originating from) a Place.
getter/setter pair
possiblySensitive bool?
Nullable. This field only surfaces when a Tweet contains a link. The meaning of the field doesn’t pertain to the Tweet content itself, but instead it is an indicator that the URL contained in the Tweet may contain content or media identified as sensitive content.
getter/setter pair
possiblySensitiveAppealable bool?
getter/setter pair
quoteCount int?
Nullable. Indicates approximately how many times this Tweet has been quoted by Twitter users.
getter/setter pair
quotedStatus Tweet?
This field only surfaces when the Tweet is a quote Tweet. This attribute contains the Tweet object of the original Tweet that was quoted.
getter/setter pair
quotedStatusIdStr String?
This field only surfaces when the Tweet is a quote Tweet. This is the string representation Tweet ID of the quoted Tweet.
getter/setter pair
URL metadata for the quoted Tweet.
getter/setter pair
replyCount int?
Number of times this Tweet has been replied to.
getter/setter pair
retweetCount int?
Number of times this Tweet has been retweeted.
getter/setter pair
retweeted bool?
Indicates whether this Tweet has been Retweeted by the authenticating user.
getter/setter pair
retweetedStatus Tweet?
Users can amplify the broadcast of Tweets authored by other users by retweeting. Retweets can be distinguished from typical Tweets by the existence of a retweetedStatus attribute. This attribute contains a representation of the original Tweet that was retweeted. Note that retweets of retweets do not show representations of the intermediary retweet, but only the original Tweet. (Users can also unretweet a retweet they created by deleting their retweet.)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String?
Utility used to post the Tweet, as an HTML-formatted string. Tweets from the Twitter website have a source value of web.
getter/setter pair
text String?
The actual UTF-8 text of the status update.
getter/setter pair
truncated bool?
Indicates whether the value of the text parameter was truncated, for example, as a result of a retweet exceeding the original Tweet text length limit of 140 characters. Truncated text will end in ellipsis, like this .... Since Twitter now rejects long Tweets vs truncating them, the large majority of Tweets will have this set to false. Note that while native retweets may have their toplevel text property shortened, the original text will be available under the retweetedStatus object and the truncated parameter will be set to the value of the original status (in most cases, false).
getter/setter pair
user User?
The user who posted this Tweet.
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