getSpanForPositionVisitor abstract method

  1. @protected
InlineSpan? getSpanForPositionVisitor(
  1. TextPosition position,
  2. Accumulator offset
)

Performs the check at each InlineSpan for if the position falls within the range of the span and returns the span if it does.

The offset parameter tracks the current index offset in the text buffer formed if the contents of the InlineSpan tree were concatenated together starting from the root InlineSpan.

This method should not be directly called. Use getSpanForPosition instead.

Implementation

@protected
InlineSpan? getSpanForPositionVisitor(TextPosition position, Accumulator offset);