add abstract method

bool add(
  1. String key,
  2. V value
)

Insert a key and value association.

key is a string to be transformed via keyMapping into a key.

Return true if (key, value) pair 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 add(String key, V value);