drop method

List<T?> drop([
  1. int n = 1
])

Implementation

List<T?> drop([int n = 1]) {
  if (n > length) {
    n = length;
  }
  for (var i = 1; i <= n; i++) {
    removeAt(0);
  }
  return this;
}