finishText method

  1. @override
InlineSpan finishText()
override

finish SpecialText

Implementation

@override
InlineSpan finishText() {
  final linkText = getContent();
  return SpecialTextSpan(
      text: linkText,
      actualText: linkText,
      start: start ?? 0,
      style: textStyle,
      recognizer: (TapGestureRecognizer()
        ..onTap = () {
          if (tapCallback != null) {
            var map = extrasMap ?? HashMap<String, dynamic>();
            map[linkKey] = linkText;
            tapCallback!(map);
          }
        }));
}