peekable method

  1. @override
Peekable<T> peekable()

Creates an iterator which can use the "peek" to look at the next element of the iterator without consuming it.

Implementation

@override
@pragma("vm:prefer-inline")
Peekable<T> peekable() => Peekable(this);