dropUntil method Null safety
- Characters target
Drops characters from the start of the range until before
the first occurrence of target
.
If the range contains any occurrences of target
,
then all characters before the start of the first such occurrence
is removed from the range.
This advances the start of the range to the start of the
first occurrence of target
.
If there are no occurrences of target
in the range,
all characteres in the range are removed,
which gives the same effect as collapseToEnd.
Returns true
if there is an occurrence of target
and false
if not.
Implementation
bool dropUntil(Characters target);