flatEntry method

Iterable<MapEntry<K, dynamic>> flatEntry()

Implementation

Iterable<MapEntry<K, dynamic>> flatEntry() {
  return entries.expand((entry) {
    final viter = [
      if (entry.value is Iterable) ...entry.value else if (entry.value != null) entry.value,
    ];
    return viter.map((v) => MapEntry<K, dynamic>(entry.key, v));
  });
}