CodeTextSpan.revealing constructor

const CodeTextSpan.revealing({
  1. required List<InlineSpan> children,
  2. required InlineCodeStyle codeStyle,
  3. TextStyle? style,
  4. GestureRecognizer? recognizer,
  5. MouseCursor? mouseCursor,
  6. String? semanticsLabel,
})

Creates a tagged span over already-built children instead of one text run.

This is the form the streaming reveal emits while a code span's last characters are still arriving: the pieces are separate spans, and the container rebuilt around them has to keep the tag or the chip is not painted until the whole paragraph settles. Measured by its subtree in collectInlineCodeRuns.

Implementation

const CodeTextSpan.revealing({
  required List<InlineSpan> super.children,
  required this.codeStyle,
  super.style,
  super.recognizer,
  super.mouseCursor,
  super.semanticsLabel,
});