finishText method
finish SpecialText
Implementation
@override
InlineSpan finishText() {
final atText = getContent();
return showAtBackground
? BackgroundTextSpan(
background: Paint()..color = Colors.blue.withOpacity(0.15),
text: atText,
actualText: atText,
start: start ?? 0,
deleteAll: true,
style: textStyle,
recognizer: (TapGestureRecognizer()
..onTap = () {
if (tapCallback != null) {
var map = extrasMap ?? HashMap<String, dynamic>();
map[atKey] = atText;
tapCallback!(map);
}
}))
: SpecialTextSpan(
text: atText,
actualText: atText,
start: start ?? 0,
style: textStyle,
recognizer: (TapGestureRecognizer()
..onTap = () {
if (tapCallback != null) {
var map = extrasMap ?? HashMap<String, dynamic>();
map[atKey] = atText;
tapCallback!(map);
}
}));
}