add method

dynamic add(
  1. dynamic key,
  2. dynamic val
)

Implementation

add(key, val) {
  data[key] = val;
}