MapReader<K, V> extension

Get the value in map

on

Methods

read<R extends V>(K key, [R? defaultValue]) → R?

Available on Map<K, V>, provided by the MapReader extension

Return the value of key in the map if the value type is R. Otherwise, return defaultValue.