transform method
Updates the element at index
to the value returned by transformer
.
Implementation
void transform(int index, ListTransformer<T> transformer) {
assert(index >= 0 && index < length);
this[index] = transformer(this[index]);
}
Updates the element at index
to the value returned by transformer
.
void transform(int index, ListTransformer<T> transformer) {
assert(index >= 0 && index < length);
this[index] = transformer(this[index]);
}