finishText method

  1. @override
InlineSpan finishText()
override

finish SpecialText

Implementation

@override
InlineSpan finishText() {
  final code = getContent();
  var parser = EmojiParser();
  if (parser.has(code) && !kIsWeb) {
    var emoji = parser.get(code);
    return TextSpan(text: emoji.code, style: TextStyle(fontSize: emojiSize));
  }
  return TextSpan(text: code, style: textStyle);
}