Original code for MapEntry
class MapEntry<K, V> {
final K key;
final V value;
const factory MapEntry(K key, V value) = MapEntry<K, V>._;
const MapEntry._(this.key, this.value);
}
What's the need to create above factory constructor when you can simply have:
class MapEntry<K, V> {
final K key;
final V value;
const MapEntry(this.key, this.value);
}