TweetV2 class

Annotations
  • @JsonSerializable()

Constructors

TweetV2({required String id, required String text, String? authorId, TweetEntitiesV2 entities = const TweetEntitiesV2.empty(), String? createdAt, List<ReferencedTweet> referencedTweets = const [], TweetV2Attachment attachments = const TweetV2Attachment.empty(), TweetV2PublicMetrics publicMetrics = const TweetV2PublicMetrics.empty()})
const
TweetV2.fromJson(Map<String, dynamic> json)
factory

Properties

attachments TweetV2Attachment
Specifies the type of attachments (if any) present in this Tweet. FOr the sake of this package we are only interested in media attachments
final
authorId String?
The unique identifier of the User who posted this Tweet. The user object could be found by this id inside TweetV2Response::includes::users
final
createdAt String?
Creation time of the Tweet. In ISO 8601 format
final
entities TweetEntitiesV2
Entities which have been parsed out of the text of the Tweet.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier of the requested Tweet.
final
publicMetrics TweetV2PublicMetrics
Public engagement metrics for the Tweet at the time of the request.
final
referencedTweets List<ReferencedTweet>
A list of Tweets this Tweet refers to. For example, if the parent Tweet is a Retweet, a Retweet with comment (also known as Quoted Tweet) or a Reply, it will include the related Tweet referenced to by its parent. In this field we will only get ids of the tweets. Proper object will be included in TweetV2Response::includes::tweets
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The actual UTF-8 text of the Tweet. See twitter-text for details on what characters are currently considered valid.
final

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