EmbeddedTweetView.fromTweetV1 constructor

EmbeddedTweetView.fromTweetV1(
  1. TweetV1Response tweet, {
  2. Color? backgroundColor = Colors.white,
  3. bool darkMode = false,
  4. double? videoPlayerInitialVolume = 0.0,
  5. OnTapImage? onTapImage,
  6. DateFormat? createdDateDisplayFormat,
  7. bool videoHighQuality = true,
  8. bool showRepliesCount = false,
  9. bool? autoPlayVideo,
  10. bool? enableVideoFullscreen,
  11. Color? videoControlBarBgColor,
  12. Widget? videoPlaceholder,
})

Implementation

EmbeddedTweetView.fromTweetV1(
  TweetV1Response tweet, {
  this.backgroundColor = Colors.white,
  this.darkMode = false,
  this.videoPlayerInitialVolume = 0.0,
  this.onTapImage,
  this.createdDateDisplayFormat,
  this.videoHighQuality = true,
  this.showRepliesCount = false,
  this.autoPlayVideo,
  this.enableVideoFullscreen,
  this.videoControlBarBgColor,
  this.videoPlaceholder,
}) : _tweetVM = TweetVM.fromApiModel(tweet, createdDateDisplayFormat);