W3cubDocs

/Dart 2

skipWhile method

Iterable<String> skipWhile (bool test(String value))
inherited

Returns an Iterable that skips leading elements while test is satisfied.

The filtering happens lazily. Every new Iterator of the returned iterable iterates over all elements of this.

The returned iterable provides elements by iterating this iterable, but skipping over all initial elements where test(element) returns true. If all elements satisfy test the resulting iterable is empty, otherwise it iterates the remaining elements in their original order, starting with the first element for which test(element) returns false.

Implementation

Iterable<String> skipWhile(bool test(String value)) =>
    readClasses().skipWhile(test);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-svg/AttributeClassSet/skipWhile.html