removeFirst method

String removeFirst(
  1. int n
)

Returns the string with the first n characters removed.

Example:

'hello'.removeFirst(2); // 'llo'

Implementation

String removeFirst(int n) {
  assert(n >= 0, 'n must be non-negative');
  return n >= length ? '' : substring(n);
}