ExpandableText constructor

const ExpandableText({
  1. Key? key,
  2. required String text,
  3. int collapsedLines = 3,
  4. String expandText = 'Read more',
  5. String collapseText = 'Show less',
  6. Color? linkColor,
  7. Color? color,
  8. double? fontSize,
  9. FontWeight? fontWeight,
  10. String? fontFamily,
  11. TextStyle? textStyle,
  12. TextAlign? textAlign,
  13. Duration? animationDuration,
  14. 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,
});