SelectableExtOnInlineSpan extension
- on
Methods
-
spanWithCharacterAtIndex(
int index, {bool includesPlaceholders = true}) → InlineSpan? -
Available on InlineSpan, provided by the SelectableExtOnInlineSpan extension
Searches this span and its contained spans (if any) for the span that contains the character atindex
, and if found, returns it. -
taggedTextForIndex(
int index, {bool includesPlaceholders = true, bool end = false}) → TaggedText? -
Available on InlineSpan, provided by the SelectableExtOnInlineSpan extension
Searches this span and its contained spans (if any) for the span that contains the character atindex
, and if found, returns a TaggedText object withtaggedText.tag
set to the containing span'stag
property (ornull
if it is not tagged),taggedText.text
set to the containing span'stext
value (orString.fromCharCode(0xFFFC)
if the containing span is not a TextSpan andincludesPlaceholders
istrue
), andtaggedText.index
set to the index intotaggedText.text
of the character. -
visitChildrenEx(
InlineSpanVisitorWithIndex visitor, {bool includesPlaceholders = true}) → bool -
Available on InlineSpan, provided by the SelectableExtOnInlineSpan extension
Walks this InlineSpan and its descendants in pre-order and callsvisitor
for each span that has text.