operator [] method

  1. @override
List<V>? operator [](
  1. String key
)

Return Iterable of values for specified key.

If no value associated with key then returns empty Iterable. If key not found then returns null.

Throws ArgumentError if key is empty or null.

Throws ArgumentError if keyMapping(key) is empty or null.

Implementation

@override
List<V>? operator [](String key) {
  final result = super[key];

  return identical(result, null) ? null : result as List<V>;
}