toMapOfValues method

Map<T, List<T>> toMapOfValues()

Implementation

Map<T, List<T>> toMapOfValues() => map(
    (key, l) => MapEntry(key.value, l.map((node) => node.value).toList()));