dropLeftWhile method

String dropLeftWhile(
  1. bool condition(
    1. String char
    )
)

Drops characters from the left while condition is true.

Implementation

String dropLeftWhile(bool Function(String char) condition) {
  var i = 0;
  while (i < length && condition(this[i])) {
    i++;
  }
  return substring(i);
}