iterator property

  1. @override
Iterator<E> get iterator
override

Iterator over the repeated elements of the receiver.

Implementation

@override
Iterator<E> get iterator => _container.entries
    .expand((entry) => repeat(entry.key, count: entry.value))
    .iterator;