dropBackWhile method Null safety
Drops characters from the end of the range while they satisfy
Iterates the characters of the current range backwards from the end
and removes all the iterated characters until one is
reached for which
If on such character is found, all characters are removed,
which gives the same effect as collapseToStart.
void dropBackWhile(bool Function(String) test);