dropLeft method

String dropLeft(
  1. int n
)

Drops the first n characters. Returns empty string if n >= length.

Implementation

String dropLeft(int n) {
  if (n <= 0) return this;
  if (n >= length) return '';
  return substring(n);
}