ReadMoreTxt constructor
const
ReadMoreTxt(
- String? data, {
- Key? key,
- ValueNotifier<
bool> ? isCollapsed, - String? preDataText,
- String? postDataText,
- TextStyle? preDataTextStyle,
- TextStyle? postDataTextStyle,
- String trimExpandedText = 'show less',
- String trimCollapsedText = 'read more',
- Color? colorClickableText,
- int trimLength = 240,
- int trimLines = 2,
- TrimMode trimMode = TrimMode.length,
- TextStyle? moreStyle,
- TextStyle? lessStyle,
- String delimiter = '$_kEllipsis ',
- TextStyle? delimiterStyle,
- List<
Annotation> ? annotations, - bool isExpandable = true,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- TextScaler? textScaler,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- Color? selectionColor,
- Widget? customCollapsedWidget,
- Widget? customExpandedWidget,
Implementation
const ReadMoreTxt(
this.data, {
super.key,
this.isCollapsed,
this.preDataText,
this.postDataText,
this.preDataTextStyle,
this.postDataTextStyle,
this.trimExpandedText = 'show less',
this.trimCollapsedText = 'read more',
this.colorClickableText,
this.trimLength = 240,
this.trimLines = 2,
this.trimMode = TrimMode.length,
this.moreStyle,
this.lessStyle,
this.delimiter = '$_kEllipsis ',
this.delimiterStyle,
this.annotations,
this.isExpandable = true,
this.style,
this.strutStyle,
this.textAlign,
this.textDirection,
this.locale,
this.softWrap,
this.overflow,
this.textScaler,
this.semanticsLabel,
this.textWidthBasis,
this.textHeightBehavior,
this.selectionColor,
/// NEW — custom widgets
this.customCollapsedWidget,
this.customExpandedWidget,
}) : richData = null,
richPreData = null,
richPostData = null;