add method Null safety
- String key,
- 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);
}