operator []= method

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

used for setting the _id field (internally)

Implementation

void operator []=(String key, String val) {
  if (key != '_id') throw UnimplementedError();
  id = val;
}