TweetView.fromTweet constructor

TweetView.fromTweet(
  1. Tweet tweet, {
  2. TextStyle? userNameStyle = defaultUserNameStyle,
  3. TextStyle? userScreenNameStyle = defaultUserScreenNameStyle,
  4. TextStyle? textStyle = defaultTextStyle,
  5. TextStyle? clickableTextStyle = defaultClickableTextStyle,
  6. TextStyle? retweetInformationTextStyle = defaultRetweetInformationStyle,
  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. bool? useVideoPlayer = true,
  15. double? videoPlayerInitialVolume = 0.0,
  16. OnTapImage? onTapImage,
  17. DateFormat? createdDateDisplayFormat,
  18. bool? videoHighQuality = true,
})

Implementation

TweetView.fromTweet(
  Tweet tweet, {
  this.userNameStyle = defaultUserNameStyle,
  this.userScreenNameStyle = defaultUserScreenNameStyle,
  this.textStyle = defaultTextStyle,
  this.clickableTextStyle = defaultClickableTextStyle,
  this.retweetInformationTextStyle = defaultRetweetInformationStyle,
  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.useVideoPlayer = true,
  this.videoPlayerInitialVolume = 0.0,
  this.onTapImage,
  this.createdDateDisplayFormat,
  this.videoHighQuality = true,
}) : _tweetVM = TweetVM.fromApiModel(tweet, createdDateDisplayFormat);