CompactTweetView.fromTweetV2 constructor

CompactTweetView.fromTweetV2(
  1. TweetV2Response tweet, {
  2. TextStyle? userNameStyle = defaultCompactUserNameStyle,
  3. TextStyle? userScreenNameStyle = defaultCompactUserScreenNameStyle,
  4. TextStyle? textStyle = defaultCompactTextStyle,
  5. TextStyle? clickableTextStyle = defaultCompactClickableTextStyle,
  6. TextStyle? retweetInformationTextStyle = defaultCompactRetweetInformationNameStyle,
  7. TextStyle? quoteUserNameStyle = defaultQuoteUserNameStyle,
  8. TextStyle? quoteUserScreenNameStyle = defaultQuoteUserScreenNameStyle,
  9. TextStyle? quoteTextStyle = defaultQuoteTextStyle,
  10. TextStyle? quoteClickableTextStyle = defaultQuoteClickableTextStyle,
  11. Color? quoteBorderColor = Colors.grey,
  12. Color? quoteBackgroundColor = Colors.white,
  13. Color? backgroundColor = Colors.white,
  14. double? videoPlayerInitialVolume = 0.0,
  15. OnTapImage? onTapImage,
  16. DateFormat? createdDateDisplayFormat,
  17. bool videoHighQuality = true,
  18. bool? autoPlayVideo,
  19. bool? enableVideoFullscreen,
  20. Color? videoControlBarBgColor,
  21. Widget? videoPlaceholder,
})

Implementation

CompactTweetView.fromTweetV2(
  TweetV2Response tweet, {
  this.userNameStyle = defaultCompactUserNameStyle,
  this.userScreenNameStyle = defaultCompactUserScreenNameStyle,
  this.textStyle = defaultCompactTextStyle,
  this.clickableTextStyle = defaultCompactClickableTextStyle,
  this.retweetInformationTextStyle =
      defaultCompactRetweetInformationNameStyle,
  this.quoteUserNameStyle = defaultQuoteUserNameStyle,
  this.quoteUserScreenNameStyle = defaultQuoteUserScreenNameStyle,
  this.quoteTextStyle = defaultQuoteTextStyle,
  this.quoteClickableTextStyle = defaultQuoteClickableTextStyle,
  this.quoteBorderColor = Colors.grey,
  this.quoteBackgroundColor = Colors.white,
  this.backgroundColor = Colors.white,
  this.videoPlayerInitialVolume = 0.0,
  this.onTapImage,
  this.createdDateDisplayFormat,
  this.videoHighQuality = true,
  this.autoPlayVideo,
  this.enableVideoFullscreen,
  this.videoControlBarBgColor,
  this.videoPlaceholder,
}) : _tweetVM = TweetVM.fromApiV2Model(tweet, createdDateDisplayFormat);