buildTextSpan method

  1. @override
TextSpan buildTextSpan({
  1. required BuildContext context,
  2. TextStyle? style,
  3. required bool withComposing,
})
override

Generates TextSpan from Mistake list

Implementation

@override
TextSpan buildTextSpan({
  required BuildContext context,
  TextStyle? style,
  required bool withComposing,
}) {
  final formattedTextSpans = _generateSpans(
    context,
    style: style,
  );

  return TextSpan(
    children: formattedTextSpans.toList(),
  );
}