ExpandableText constructor

ExpandableText({
  1. required String text,
  2. required TextStyle style,
  3. int maxLines = 3,
  4. TextAlign? textAlign,
  5. bool selectable = false,
  6. TextScaler? textScaler,
  7. TextOverflow? textOverflow,
  8. String expandLabel = '...show more',
  9. String collapseLabel = ' show less',
  10. TextStyle? expandTextStyle,
})

Implementation

ExpandableText({
  required this.text,
  required this.style,
  this.maxLines = 3,
  this.textAlign,
  this.selectable = false,
  this.textScaler,
  this.textOverflow,
  this.expandLabel = '...show more',
  this.collapseLabel = ' show less',
  this.expandTextStyle,
});