ExpandableText constructor

const ExpandableText({
  1. Key? key,
  2. required String text,
  3. int maxLines = 3,
  4. String expandText = 'Read more',
  5. String collapseText = 'Read less',
  6. TextStyle? style,
  7. TextStyle? linkStyle,
  8. Color? linkColor,
  9. Duration animationDuration = const Duration(milliseconds: 250),
})

Implementation

const ExpandableText({
  super.key,
  required this.text,
  this.maxLines = 3,
  this.expandText = 'Read more',
  this.collapseText = 'Read less',
  this.style,
  this.linkStyle,
  this.linkColor,
  this.animationDuration = const Duration(milliseconds: 250),
});