toList<T> method

Iterable<T> toList<T>(
  1. T callback(
    1. K key,
    2. V value
    )
)

Convert it to a list through callback.

Implementation

Iterable<T> toList<T>(T Function(K key, V value) callback) sync* {
  for (final tmp in entries) {
    yield callback(tmp.key, tmp.value);
  }
}