TweetV2 constructor

const TweetV2({
  1. required String id,
  2. required String text,
  3. String? authorId,
  4. TweetEntitiesV2 entities = const TweetEntitiesV2.empty(),
  5. String? createdAt,
  6. List<ReferencedTweet> referencedTweets = const [],
  7. TweetV2Attachment attachments = const TweetV2Attachment.empty(),
  8. TweetV2PublicMetrics publicMetrics = const TweetV2PublicMetrics.empty(),
})

Implementation

const TweetV2({
  required this.id,
  required this.text,
  this.authorId,
  this.entities = const TweetEntitiesV2.empty(),
  this.createdAt,
  this.referencedTweets = const [],
  this.attachments = const TweetV2Attachment.empty(),
  this.publicMetrics = const TweetV2PublicMetrics.empty(),
});