CodeTextSpan.revealing constructor
const
CodeTextSpan.revealing({
- required List<
InlineSpan> children, - required InlineCodeStyle codeStyle,
- TextStyle? style,
- GestureRecognizer? recognizer,
- MouseCursor? mouseCursor,
- 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,
});