DetectableText constructor
DetectableText({
- required String text,
- required RegExp detectionRegExp,
- TextStyle? basicStyle,
- TextStyle? detectedStyle,
- dynamic onTap()?,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- bool softWrap = true,
- TextOverflow overflow = TextOverflow.clip,
- TextScaler textScaler = TextScaler.noScaling,
- int? maxLines,
- Locale? locale,
- StrutStyle? strutStyle,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- TextHeightBehavior? textHeightBehavior,
- String trimExpandedText = 'show less',
- String trimCollapsedText = 'read more',
- TextStyle? moreStyle,
- TextStyle? lessStyle,
- Color? colorClickableText,
- int trimLength = 240,
- int trimLines = 2,
- TrimMode trimMode = TrimMode.Length,
- String delimiter = _kEllipsis + ' ',
- dynamic onExpansionChanged(
- 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.textScaler = TextScaler.noScaling,
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.onExpansionChanged,
});