dart / 2 / dart-core / iterable / iterable.empty.html

Iterable<E>.empty constructor

const Iterable<E>.empty()

Creates an empty iterable.

The empty iterable has no elements, and iterating it always stops immediately.

Implementation

const factory Iterable.empty() = EmptyIterable<E>;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/Iterable/Iterable.empty.html