factory constructor ObservableMap.from


ObservableMap.from(Map<K, V> other)

Creates an observable map that contains all key value pairs of other. It will attempt to use the same backing map type if the other map is a LinkedHashMap, SplayTreeMap, or HashMap. Otherwise it defaults to HashMap.

Note this will perform a shallow conversion. If you want a deep conversion you should use toObservable.

Source

factory ObservableMap.from(Map<K, V> other) {
  return new ObservableMap<K, V>.createFromType(other)..addAll(other);
}