moveUntil method Null safety

bool moveUntil(
  1. Characters target
)

Moves to the range until the next occurrence of target.

If there is an occurrence of target in the characters following the current range, then the new range contains the characters from the end of the current range until, but no including the first such occurrence of target.

If there is no occurrence of target after the current range, the new range contains all the characters following the current range, from the end of the current range until the end of the string.

Returns true if there was an occurrence of target.

Implementation

bool moveUntil(Characters target);