TweetV2 constructor
const
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(),
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(),
});