toTextSpans method

TextSpan toTextSpans([
  1. TextStyle? style = const TextStyle(color: Colors.black)
])

Returns a text span based on this rich text

Implementation

TextSpan toTextSpans([TextStyle? style = const TextStyle(color: Colors.black)]) {
  return _toTextSpans(style);
}