nextRunePosition method

int nextRunePosition(
  1. int pos
)

Returns the position of the next grapheme cluster boundary.

Implementation

int nextRunePosition(int pos) {
  if (pos >= length - 1) return length;
  return CharacterBoundary(this).getTrailingTextBoundaryAt(
        pos,
      ) ??
      length;
}