EmbeddedTweetView.fromTweet constructor

EmbeddedTweetView.fromTweet(
  1. Tweet tweet, {
  2. Color? backgroundColor = Colors.white,
  3. bool darkMode = false,
  4. bool useVideoPlayer = true,
  5. double? videoPlayerInitialVolume = 0.0,
  6. OnTapImage? onTapImage,
  7. DateFormat? createdDateDisplayFormat,
  8. bool videoHighQuality = true,
})

Implementation

EmbeddedTweetView.fromTweet(
  Tweet tweet, {
  this.backgroundColor = Colors.white,
  this.darkMode = false,
  this.useVideoPlayer = true,
  this.videoPlayerInitialVolume = 0.0,
  this.onTapImage,
  this.createdDateDisplayFormat,
  this.videoHighQuality = true,
}) : _tweetVM = TweetVM.fromApiModel(tweet, createdDateDisplayFormat);