ExpandableText constructor
const
ExpandableText({
- Key? key,
- required String text,
- int collapsedLines = 3,
- String expandText = 'Read more',
- String collapseText = 'Show less',
- Color? linkColor,
- Color? color,
- double? fontSize,
- FontWeight? fontWeight,
- String? fontFamily,
- TextStyle? textStyle,
- TextAlign? textAlign,
- Duration? animationDuration,
- bool? enableSecurity,
Implementation
const ExpandableText({
super.key,
required this.text,
this.collapsedLines = 3,
this.expandText = 'Read more',
this.collapseText = 'Show less',
this.linkColor,
this.color,
this.fontSize,
this.fontWeight,
this.fontFamily,
this.textStyle,
this.textAlign,
this.animationDuration,
this.enableSecurity,
});