infiniteSingleElementIterator<T> function

Iterable<T> infiniteSingleElementIterator<T>(
  1. T element
)

Implementation

Iterable<T> infiniteSingleElementIterator<T>(T element) sync* {
  while (true) {
    yield element;
  }
}