TextSpan constructor

const TextSpan(
  1. {String text,
  2. List<InlineSpan> children,
  3. TextStyle style,
  4. GestureRecognizer recognizer,
  5. 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,);