NotNullMap<K, V>.from constructor

NotNullMap<K, V>.from(
  1. Map<K, V> map
)

Implementation

factory NotNullMap.from(Map<K, V> map) {
  final notNullMap = NotNullMap<K, V>();
  map.forEach((key, value) {
    notNullMap[key] = value;
  });
  return notNullMap;
}