operator []= method

void operator []=(
  1. String key,
  2. dynamic val
)

the setter to set the data if needed

Implementation

void operator []=(String key, dynamic val) {
  data[key] = val;
}