DetectableText constructor

DetectableText({
  1. required String text,
  2. required RegExp detectionRegExp,
  3. TextStyle? basicStyle,
  4. TextStyle? detectedStyle,
  5. dynamic onTap(
    1. String
    )?,
  6. TextAlign textAlign = TextAlign.start,
  7. TextDirection? textDirection,
  8. bool softWrap = true,
  9. TextOverflow overflow = TextOverflow.clip,
  10. double textScaleFactor = 1.0,
  11. int? maxLines,
  12. Locale? locale,
  13. StrutStyle? strutStyle,
  14. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  15. TextHeightBehavior? textHeightBehavior,
  16. String trimExpandedText = 'show less',
  17. String trimCollapsedText = 'read more',
  18. TextStyle? moreStyle,
  19. TextStyle? lessStyle,
  20. Color? colorClickableText,
  21. int trimLength = 240,
  22. int trimLines = 2,
  23. TrimMode trimMode = TrimMode.Length,
  24. String delimiter = _kEllipsis + ' ',
  25. dynamic callback(
    1. bool val
    )?,
})

Implementation

DetectableText({
  required this.text,
  required this.detectionRegExp,
  this.basicStyle,
  this.detectedStyle,
  this.onTap,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.textScaleFactor = 1.0,
  this.maxLines,
  this.locale,
  this.strutStyle,
  this.textWidthBasis = TextWidthBasis.parent,
  this.textHeightBehavior,
  this.trimExpandedText = 'show less',
  this.trimCollapsedText = 'read more',
  this.moreStyle,
  this.lessStyle,
  this.colorClickableText,
  this.trimLength = 240,
  this.trimLines = 2,
  this.trimMode = TrimMode.Length,
  this.delimiter = _kEllipsis + ' ',
  this.callback,
});