appendElement method

Iterable<E> appendElement(
  1. E element
)

Returns a new lazy Iterable containing the given element and then all elements of this collection.

Implementation

Iterable<E> appendElement(E element) sync* {
  yield* this;
  yield element;
}