putIfAbsent method

  1. @override
V putIfAbsent(
  1. K key,
  2. Callback<V> ifAbsent
)
override

This operation is not supported by an unmodifiable map.

Implementation

@override
V putIfAbsent(K key, Callback<V> ifAbsent) {
  throw UnsupportedError('Cannot modify unmodifiable map');
}