copyWith method

LMFeedExpandableText copyWith({
  1. String? text,
  2. String? expandText,
  3. String? collapseText,
  4. bool? expanded,
  5. ValueChanged<bool>? onExpandedChanged,
  6. VoidCallback? onLinkTap,
  7. Color? linkColor,
  8. bool? linkEllipsis,
  9. TextStyle? linkStyle,
  10. String? prefixText,
  11. TextStyle? prefixStyle,
  12. VoidCallback? onPrefixTap,
  13. TextStyle? urlStyle,
  14. StringCallback? onUrlTap,
  15. TextStyle? hashtagStyle,
  16. StringCallback? onHashtagTap,
  17. TextStyle? mentionStyle,
  18. StringCallback? onMentionTap,
  19. bool? expandOnTextTap,
  20. bool? collapseOnTextTap,
  21. TextStyle? style,
  22. TextDirection? textDirection,
  23. TextAlign? textAlign,
  24. double? textScaleFactor,
  25. int? maxLines,
  26. bool? animation,
  27. Duration? animationDuration,
  28. Curve? animationCurve,
  29. String? semanticsLabel,
  30. dynamic onTagTap(
    1. String
    )?,
  31. VoidCallback? onTextTap,
})

Implementation

LMFeedExpandableText copyWith({
  String? text,
  String? expandText,
  String? collapseText,
  bool? expanded,
  ValueChanged<bool>? onExpandedChanged,
  VoidCallback? onLinkTap,
  Color? linkColor,
  bool? linkEllipsis,
  TextStyle? linkStyle,
  String? prefixText,
  TextStyle? prefixStyle,
  VoidCallback? onPrefixTap,
  TextStyle? urlStyle,
  StringCallback? onUrlTap,
  TextStyle? hashtagStyle,
  StringCallback? onHashtagTap,
  TextStyle? mentionStyle,
  StringCallback? onMentionTap,
  bool? expandOnTextTap,
  bool? collapseOnTextTap,
  TextStyle? style,
  TextDirection? textDirection,
  TextAlign? textAlign,
  double? textScaleFactor,
  int? maxLines,
  bool? animation,
  Duration? animationDuration,
  Curve? animationCurve,
  String? semanticsLabel,
  Function(String)? onTagTap,
  VoidCallback? onTextTap,
}) {
  return LMFeedExpandableText(
    text ?? this.text,
    expandText: expandText ?? this.expandText,
    collapseText: collapseText ?? this.collapseText,
    expanded: expanded ?? this.expanded,
    onExpandedChanged: onExpandedChanged ?? this.onExpandedChanged,
    onLinkTap: onLinkTap ?? this.onLinkTap,
    linkColor: linkColor ?? this.linkColor,
    linkEllipsis: linkEllipsis ?? this.linkEllipsis,
    linkStyle: linkStyle ?? this.linkStyle,
    prefixText: prefixText ?? this.prefixText,
    prefixStyle: prefixStyle ?? this.prefixStyle,
    onPrefixTap: onPrefixTap ?? this.onPrefixTap,
    urlStyle: urlStyle ?? this.urlStyle,
    onUrlTap: onUrlTap ?? this.onUrlTap,
    hashtagStyle: hashtagStyle ?? this.hashtagStyle,
    onHashtagTap: onHashtagTap ?? this.onHashtagTap,
    mentionStyle: mentionStyle ?? this.mentionStyle,
    onMentionTap: onMentionTap ?? this.onMentionTap,
    expandOnTextTap: expandOnTextTap ?? this.expandOnTextTap,
    collapseOnTextTap: collapseOnTextTap ?? this.collapseOnTextTap,
    style: style ?? this.style,
    textDirection: textDirection ?? this.textDirection,
    textAlign: textAlign ?? this.textAlign,
    textScaleFactor: textScaleFactor ?? this.textScaleFactor,
    maxLines: maxLines ?? this.maxLines,
    animation: animation ?? this.animation,
    animationDuration: animationDuration ?? this.animationDuration,
    animationCurve: animationCurve ?? this.animationCurve,
    semanticsLabel: semanticsLabel ?? this.semanticsLabel,
    onTagTap: onTagTap ?? this.onTagTap,
    onTextTap: onTextTap ?? this.onTextTap,
  );
}