copyItems method

List<T> copyItems({
  1. T mapCopy(
    1. T
    )?,
})

Copy the elements of the content of the collection object, the collection does not copy.

Implementation

List<T> copyItems({T Function(T)? mapCopy}) {
  if (mapCopy.isNoNull) {
    for (var i = 0; i < length; i++) {
      this[i] = mapCopy!.call(this[i]);
    }
  }
  return this;
}