Dart  Iterable

Dart Iterable

What is an Iterable?

  • An Iterable is a collection of elements that can be accessed sequentially.

  • n Dart, an Iterable is an abstract class, meaning that you can't instantiate it directly. However, you can create a new Iterable by creating a new List or Set.

Iterable<int> iterable = [1, 2, 3];