next method

T? next()

Implementation

T? next() {
  return moveNext() ? current : null;
}