addKey abstract method

bool addKey(
  1. String key
)

Add key to collection.

If a key does not allready exists then it is mapped to an empty value collection, otherwise no change occurs.

Returns true if key did not already exist, false otherwise.

Throws ArgumentError if key is empty or null.

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

Implementation

bool addKey(String key);