InlineSpanSemanticsInformation constructor
- String text, {
- bool isPlaceholder = false,
- String? semanticsLabel,
- List<
StringAttribute> stringAttributes = const <ui.StringAttribute>[], - GestureRecognizer? recognizer,
Constructs an object that holds the text and semantics label values of an InlineSpan.
Use InlineSpanSemanticsInformation.placeholder instead of directly setting isPlaceholder.
Implementation
const InlineSpanSemanticsInformation(
this.text, {
this.isPlaceholder = false,
this.semanticsLabel,
this.stringAttributes = const <ui.StringAttribute>[],
this.recognizer,
}) : assert(!isPlaceholder || (text == '\uFFFC' && semanticsLabel == null && recognizer == null)),
requiresOwnNode = isPlaceholder || recognizer != null;