build method
TextSpan
build(
- String data, {
- TextStyle? textStyle,
- SpecialTextGestureTapCallback? onTap,
override
Implementation
@override
TextSpan build(String data,
{TextStyle? textStyle, SpecialTextGestureTapCallback? onTap}) {
final List<InlineSpan> children = <InlineSpan>[];
if (regExps.isNotEmpty) {
buildWithRegExp(
children: children,
start: 0,
data: data,
copyRegExps: regExps.toList(),
textStyle: textStyle,
onTap: onTap,
);
}
return TextSpan(children: children, style: textStyle);
}