prepend method

Iterable<T> prepend(
  1. T element
)

Insert element at the beginning of the Iterable.

Implementation

Iterable<T> prepend(T element) sync* {
  yield element;
  yield* this;
}