operator []= method

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

Implementation

void operator []=(String key, String value) {
  int? index = findIndex(key);
  if (index != null) {
    try {
      arguments[index + 1] = value;
    } catch (e) {
      arguments.add(value);
    }
  } else {
    arguments.addAll([
      key,
      value,
    ]);
  }
}