modify<T> method

List modify<T>(
  1. int index,
  2. dynamic modifier(
    1. T
    )
)

Implementation

List<dynamic> modify<T>(int index, dynamic Function(T) modifier) {
  this[index] = modifier(this[index]);
  return this;
}