buildTextSpan method
TextSpan
buildTextSpan({
- required BuildContext context,
- TextStyle? style,
- required bool withComposing,
override
Builds TextSpan from current editing value.
By default makes text in composing range appear as underlined. Descendants can override this method to customize appearance of text.
Implementation
@override
TextSpan buildTextSpan({
required BuildContext context,
TextStyle? style,
required bool withComposing,
}) {
final List<InlineSpan> children = FormattedTextUtils.formattedSpans(
context,
text,
style: style,
showFormattingCharacters: true,
formatters: formatters,
);
return TextSpan(style: style, children: children);
}