skip method

void Function(T) skip(
  1. int count
)

Implementation

void Function(T) skip(int count) {
  assert (count >= 0);

  int counter = count;

  return (value) {
    if (counter == 0) {
      call(value);
    } else {
      counter--;
    }
  };
}