contains method

  1. @override
bool contains(
  1. String key,
  2. V value
)
inherited

Returns whether this TTMultiMap contains an association between keyMapping(key) and value.

Throws ArgumentError if key is empty or null.

Implementation

@override
bool contains(String key, V value) {
  final keyNode = _root?.getKeyNode(_mapKey(key));

  // Does the key map to anything?
  if (identical(keyNode, null)) {
    return false;
  }

  return keyNode.values.contains(value);
}