TextSpan constructor

const TextSpan({TextStyle style, String text, List<TextSpan> children, GestureRecognizer recognizer })

Creates a TextSpan with the given values.

For the object to be useful, at least one of text or children should be set.

Implementation

const TextSpan({
  this.style,
  this.text,
  this.children,
  this.recognizer,
});