add method

void add(
  1. String key,
  2. dynamic value
)

Atomically add value to the end of the array key.

Implementation

void add(String key, dynamic value) {
  if (isNullOrEmpty(key)) {
    throw ArgumentError.notNull('key');
  }
  if (value == null) {
    throw ArgumentError.notNull('value');
  }
  _LCAddOperation op = new _LCAddOperation([value]);
  _applyOperation(key, op);
}