TweetView.fromTweet constructor
TweetView.fromTweet(
- Tweet tweet, {
- TextStyle? userNameStyle = defaultUserNameStyle,
- TextStyle? userScreenNameStyle = defaultUserScreenNameStyle,
- TextStyle? textStyle = defaultTextStyle,
- TextStyle? clickableTextStyle = defaultClickableTextStyle,
- TextStyle? retweetInformationTextStyle = defaultRetweetInformationStyle,
- TextStyle? quoteUserNameStyle = defaultQuoteUserNameStyle,
- TextStyle? quoteUserScreenNameStyle = defaultQuoteUserScreenNameStyle,
- TextStyle? quoteTextStyle = defaultQuoteTextStyle,
- TextStyle? quoteClickableTextStyle = defaultQuoteClickableTextStyle,
- Color? quoteBorderColor = Colors.grey,
- Color? quoteBackgroundColor = Colors.white,
- Color? backgroundColor = Colors.white,
- bool? useVideoPlayer = true,
- double? videoPlayerInitialVolume = 0.0,
- OnTapImage? onTapImage,
- DateFormat? createdDateDisplayFormat,
- 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);