TextSpan constructor

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

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.text,
  this.children,
  TextStyle style,
  this.recognizer,
  this.semanticsLabel,
}) : super(style: style,);