TruncatedText constructor

const TruncatedText(
  1. String text, {
  2. Key? key,
  3. required int maxLength,
  4. int? maxLines,
  5. TextStyle? style,
  6. TextStyle? expandedStyle,
  7. String truncationSuffix = '...',
  8. bool expandable = true,
  9. bool initiallyExpanded = false,
  10. Duration animationDuration = const Duration(milliseconds: 200),
})

Implementation

const TruncatedText(
  this.text, {
  Key? key,
  required this.maxLength,
  this.maxLines,
  this.style,
  this.expandedStyle,
  this.truncationSuffix = '...',
  this.expandable = true,
  this.initiallyExpanded = false,
  this.animationDuration = const Duration(milliseconds: 200),
}) : super(key: key);