get method

List<V> get(
  1. K key
)

Get the list by the key. Will return empty list if key is not present.

Implementation

List<V> get(K key) {
  if ( !data.containsKey(key) ) {
    return [];
  } else {
    return data[key]!;
  }
}